Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 736 Bytes

File metadata and controls

17 lines (12 loc) · 736 Bytes

NumberFormatRatio

Display the value as a ratio with different scaling factors and suffixes:

  • PERCENTAGE: Multiply by 100 and add "%" suffix (0.15 → "15%")
  • PER_MILLE: Multiply by 1000 and add "‰" suffix (0.015 → "15‰")
  • BASIS_POINTS: Multiply by 10000 and add "bps" suffix (0.0015 → "15bps")

Properties

Name Type Required Description
ratio_type NumberRatioType Yes
base_format_options NumberFormatOptions Yes
type Literal["ratio"] Yes None

[Back to Model list] [Back to API list] [Back to README]