Editors Depot

[ArmA] SPON_formatNumber by Spooner

Version v0.1.0
Added 12 Dec 2008
Downloads 231
Demo included Yes
Filesize 20.59KB
User rating Not yet rated

Format numbers as strings

Formats a number to a minimum integer width (e.g. 56 with 3 width would be "056") and/or to a specific number of decimal places (including padding with 0s and correct rounding). Numbers are always displayed fully, never being condensed using an exponent (e.g. the number 1.234e9 would be given as "1234000000").

Additionally, if required, it will separate the integer part of the number with the appropriate localized seperators as, for example, "21,002" or "1,000,000".

View the forum thread for this resource here.


Click to see 16 other resources by this author.


Search OFPEC Editors Depot

COMREF

The OFPEC Command Reference contains details of all scripting commands available to the editor.

Beginner's Tutorial

All you need to know about how to start editing.

Multiplayer Tutorial

This tutorial explains the mysteries of multiplayer editing.

OFPEC Tutorials

OFPEC hosts several quality tutorials written specifically for the site by staff and members...

OFPEC Tags

Register a tag, browse for addon keys...