Find values to right of decimal place

A

abbarition

I have a need to find just the values that appear to the right of the decimal
place of a number. Is there a good way to do this other than using the InStr
function to search for a decimal place?

Thanks!
 
P

pietlinden

I have a need to find just the values that appear to the right of the decimal
place of a number.  Is there a good way to do this other than using theInStr
function to search for a decimal place?

Thanks!

Public Function GetRemainder(ByVal curNumber As Currency) As Currency
GetRemainder = curNumber - curNumber \ 1
End Function

I tried using Mod, but it only works with integers...
 
M

Marshall Barton

abbarition said:
I have a need to find just the values that appear to the right of the decimal
place of a number. Is there a good way to do this other than using the InStr
function to search for a decimal place?


X - Fix(x)
 

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

Top