struct Rosetta::LocalizedNumber

Overview

LocalizedNumber is similar to a Translation object; it implements a similar interface but its sole purpose is to localize numeric objects.

Defined in:

rosetta/localization.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(separator : String | Char, delimiter : String | Char, decimal_places : Int32, group : Int32, only_significant : Bool) #

[View source]

Instance Method Detail

def l(number : Number, separator : String | Char = @separator, delimiter : String | Char = @delimiter, decimal_places : Int32 = @decimal_places, group : Int32 = @group, only_significant : Bool = @only_significant) #

[View source]