JumpyNET
Centurion
- Joined
- Apr 4, 2005
- Messages
- 196
1)
How can I round a variable of the type Double to six most significant numbers (not six decimals)?
0.000001403012501 --> 0.00000140301
1403012501 --> 1403010000
2)
How can I convert a variable of the type Double to string in exponential form - even if the exponent would be something very small?
0.00000140301 --> "1.40301e-06"
3)
I bet you could do the thing in the first question at same time you do the thing in the second question, but I want to keep those procedures separate.
How can I round a variable of the type Double to six most significant numbers (not six decimals)?
0.000001403012501 --> 0.00000140301
1403012501 --> 1403010000
2)
How can I convert a variable of the type Double to string in exponential form - even if the exponent would be something very small?
0.00000140301 --> "1.40301e-06"
3)
I bet you could do the thing in the first question at same time you do the thing in the second question, but I want to keep those procedures separate.
Last edited: