D djf Oct 6, 2009 #1 How can I only show the decimal part of a number? For example, if I have 1.234 I want to extract and show .234
How can I only show the decimal part of a number? For example, if I have 1.234 I want to extract and show .234
S Stefan Hoffmann Oct 6, 2009 #2 hi, How can I only show the decimal part of a number? For example, if I have 1.234 I want to extract and show .234 Click to expand... E.g. [YourNumber] - CLng([YourNumber]) mfG --> stefan <--
hi, How can I only show the decimal part of a number? For example, if I have 1.234 I want to extract and show .234 Click to expand... E.g. [YourNumber] - CLng([YourNumber]) mfG --> stefan <--
K Klatuu Oct 6, 2009 #3 x = 1.234 = Format(X-Int(X),"#.####") Note I have 4 # following the decimal. That is so you can get the precision you want without following zeros.
x = 1.234 = Format(X-Int(X),"#.####") Note I have 4 # following the decimal. That is so you can get the precision you want without following zeros.
D djf Oct 6, 2009 #4 Thanks. It works great. Klatuu said: x = 1.234 = Format(X-Int(X),"#.####") Note I have 4 # following the decimal. That is so you can get the precision you want without following zeros. Click to expand...
Thanks. It works great. Klatuu said: x = 1.234 = Format(X-Int(X),"#.####") Note I have 4 # following the decimal. That is so you can get the precision you want without following zeros. Click to expand...
H HN Oct 17, 2009 #5 You can do it mathematically real easily. Round the number (1.234 to -infinity) you'll get 1 and then 1.234 minus that 1 equals 0.234. Voila.
You can do it mathematically real easily. Round the number (1.234 to -infinity) you'll get 1 and then 1.234 minus that 1 equals 0.234. Voila.