Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

Truncate numbers with many decimals

Is it possible to truncate numbers with many decimals to a number with only 2 decimals(e.q. 0.056 -> 0.05)? I am using VB 6.0.
0 Kudos
Message 1 of 2
(5,016 Views)
If you're asking about this in the context of the Measurement Studio for Visual Basic user interface controls, you can do this in the Format tab of the control property pages. For example, a format string like ".##" would get you what you want. If you're asking how to do this in general, you can use VB's FormatString function.

- Elton
0 Kudos
Message 2 of 2
(5,016 Views)