Hello everyone,

is there any function or a code that returnes the decimal digits of a float ? for example: I have float A = 12.345678 but I'd like to get an int B = 5678 of that float.

P.S. I actually don't know the value of A, so multiplying A by 10e6 and then substracting 12340000 isn't possible. I just assigned a value to A here to make the problem clear, but it's for sure that the float value will have the same structure as A (two digits before the decimal point and 6 digits after it)

thanks a lot