/xa3.format

Number formatting library

Primary LanguageHaxeMIT LicenseMIT

Number formatting library

Methods

NumberFormat.number( v:Float, decimals = 0, NumberFormat.en, minWholeNumbers = 1 ):String

NumberFormat.fixed( v:Float, decimals = 0, NumberFormat.en, minWholeNumbers = 1 ):String

NumberFormat.percent( v:Float, NumberFormat.en ):String

NumberFormat.getDecimalDigits( v:Float ):Int

NumberFormat.round( v:Float, decimals:Int ):Float

Check out the tests for examples.

Issues

Found any bug? Please create a new issue.