1.23 return to 0.23

  • Thread starter Thread starter swwong
  • Start date Start date
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!
 
I mean 1.23 return to 0.23 or 2.12 return to 0.12. or 10000.1 return to
0.1


Thanks
 
=MOD(A1,1)

--
Regards,

Peo Sjoblom

(No private emails please)
 
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))
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top