Sha256: 2088aa46571cf5ceb5c1f4f7108b833363e3a288c7725a9cb70135ff88a6069c
Contents?: true
Size: 1.76 KB
Versions: 71
Compression:
Stored size: 1.76 KB
Contents
{ "schema_type": "object", "schema_version": "1.1", "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", "arg_type": "req", "type": "Or[Integer, Float, String]" }, { "arg": "opts", "arg_type": "keyrest", "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
71 entries across 71 versions & 1 rubygems