View Single Post
Old 05-18-2013, 12:36 AM   #2 (permalink)
EcoModding Apprentice
Join Date: Aug 2009
Location: terra firma
Posts: 138
Thanks: 4
Thanked 24 Times in 22 Posts
I posted an improved format() procedure in:

Code hacks - EcoModder

It prints leading spaces instead of zeroes, and you can change the number of digits and decimal places. For example, "format(instantmph(),2,0)" would print "75". Or, "format(instantmph(),5,2)" would print " 75.33".

I think it was written for an earlier version of the code (0.82), but it might work in the current code without too much tweaking. If nothing else, it's a starting point to fix the ugly default.
  Reply With Quote
The Following User Says Thank You to nickdigger For This Useful Post:
AndrzejM (05-19-2013)