1.23 return to 0.23

S

swwong

Hello

I input 1.23 in A1
but I want B1 to return to 0.23

How can I do that? :confused:

Thanks!
 
S

swwong

I mean 1.23 return to 0.23 or 2.12 return to 0.12. or 10000.1 return to
0.1


Thanks
 
B

Bryan Hessey

plus, if you wish to allow for negative numbers:

=IF(A1<0,A1+(INT(A1)*-1)-1,A1-INT(A1))

or

=IF(A1<0,MOD(A1,-1),MOD(A1,1))
 
Top