![]() |
|
| How to get the fractional part of a number? | |
iWholeNum = Fix(dMin)
dDecimalPart = iWholeNum - dMin
dDecimalPart = Abs(dDecimalPart)
dMin would be your decimal number (3,1415 ...), you will have the fractional part in dDecimalPart after these lines.
Thanks to < William.T.Powell@noaa.gov > for this submission.
|
|
| Mail to Daniel
Wiman <daniel@wimania.com> Online since June 1996, updated 2000-01-15 |
<- The VB home <- Daniels homepage |