How do I format numbers to always have two decimals e.g. 0 as 0.00, 1 as 1.00, 1.1 as 1.10 ?
The numbers are mm read from a file, converted to inches and rounded to max two places with VB. The result is written to a file and needs to always show 2 dp's.
Let>rain=param_8/25.4
VBEval>Round(%rain%,2),rain
Let>in= in.
ConCat>rain,in
Format numbers with two decimals.
Moderators: JRL, Dorian (MJT support)
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
VBEval>FormatNumber(%rain%,2),rain
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?