Sha256: b298d6a78fd34a035df1b3f990768bab31c3b02aeb6cef2ab0398b3c03b3b298
Contents?: true
Size: 1.7 KB
Versions: 28
Compression:
Stored size: 1.7 KB
Contents
{ "schema_type": "object", "schema_version": "1.0", "name": "number_to_currency", "path": "packages/ree_number/package/ree_number/functions/number_to_currency.rb", "mount_as": "fn", "class": "ReeNumber::NumberToCurrency", "factory": null, "methods": [ { "doc": "Converts Integer, Float or String to a String with currency sign and delimiters.\n number_to_currency(1234567890.506)\n # => \"$1,234,567,890.51\"\n\n number_to_currency(-1234567890.50)\n # => \"-$1,234,567,890.50\"\n\n number_to_currency(1234567890.50, unit: \"£\")\n # => \"£1,234,567,890.50\"\n \n number_to_currency(1234567890.50, unit: \"£\", separator: \",\", delimiter: \"\")\n # => \"£1234567890,50\"", "throws": [ ], "return": "String", "args": [ { "arg": "number", "type": "Or[Integer, Float, String]" }, { "arg": "opts", "type": "Ksplat[:format? => String, :precision? => Integer, :unit? => String, :negative_format? => String, :separator? => String, :delimiter? => String, :significant? => Bool, :strip_insignificant_zeros? => Bool, :round_mode? => Or[up, down, truncate, half_up, default, half_down, half_even, banker, ceiling, floor]]" } ] } ], "links": [ { "target": "number_to_delimited", "package_name": "ree_number", "as": "number_to_delimited", "imports": [ ] }, { "target": "number_to_rounded", "package_name": "ree_number", "as": "number_to_rounded", "imports": [ "ROUND_MODES" ] }, { "target": "slice", "package_name": "ree_hash", "as": "slice", "imports": [ ] } ] }
Version data entries
28 entries across 28 versions & 1 rubygems