smart-number-shortener
Reactive icon

Smart Number Shortener

Stable version 1.0.0 (Compatible with OutSystems 11)
Uploaded
 on 11 Jul (2 days ago)
 by 
EONE TECHNOLOGIES PRIVATE LIMITED
0.0
 (0 ratings)
smart-number-shortener

Smart Number Shortener

Documentation
1.0.0

 Key Features:

Shortens numbers to readable formats (e.g., 15001.5K, 1,200,0001.2M)

Currency support with symbol prefix or suffix ($1.2M or 1.2M€)

Optional Indian format support (1500001.5L, 100000001Cr)

Custom decimal precision (e.g., 1.53K, 1.534M)

Removes trailing zeros (1.0M1M)

Supports negative numbers gracefully (-1200000-1.2M)

Define your own suffixes (K, M, B, L, Cr, etc.)

Use thousands separator (e.g., 1,234)

Exposed as a public Client Action – no UI block required


Input Parameters

  • Amount (Decimal): Number to shorten

  • Symbol (Text): Currency symbol (e.g., $, €, ₹)

  • IsSymbolPrefix (Boolean): Show symbol before or after the number

  • UseIndianFormat (Boolean): Switch between international and Indian formats

  • DecimalPlaces (Integer): Number of decimal digits to show

  • UseThousandSeparator (Boolean): Add commas to small numbers (e.g., 1,000)

  • ShowSymbol (Boolean): Toggle visibility of currency symbol

  • ThousandSuffix, MillionSuffix, BillionSuffix (Text): Custom suffix labels

  • LakhSuffix, CroreSuffix (Text): Custom Indian suffix labels


 Output Parameter

  • FormattedOutput (Text): Final formatted and styled number as a string