A
aegis
how can I take the fractional part of a floating point value
such that I can store that value into an integer type?
float foo = 6.180;
now take the fractional part
such that you can store 180 into an object
of type int or any other integer type.
I'm looking for way not involving the use of
float -> string -> parse string -> get 180 -> convert to int
but a process involving
float -> int
such that I can store that value into an integer type?
float foo = 6.180;
now take the fractional part
such that you can store 180 into an object
of type int or any other integer type.
I'm looking for way not involving the use of
float -> string -> parse string -> get 180 -> convert to int
but a process involving
float -> int