How can I get a whole number from a decimal (drop?)

rkw12345

New member
Local time
Today, 14:20
Joined
May 21, 2004
Messages
8
Any suggestions will be helpful.

I have a number "55.154523", and I only want to show "55". How can this be done? I need to drop everthing after the decimal.

I know it is probably an easy task, but I am at a loss.

Thank you in advance for any assistance.
 
mynum=55.123456
newnum=cint(mynum)
 
Is there a way to just drop all to the right of the decimal instead of rounding:

mynum=55.123456 drop=55
or
mynum=55.785 drop=55

Thanks.
 

Users who are viewing this thread

Back
Top Bottom