Formats a number for display using the device region's decimal separator.
The numeric value to format
Maximum number of fractional digits to keep
The formatted string, using the device region's decimal separator
// device region FRformatDecimalForDisplay(0.75, 2) // returns '0,75'// device region USformatDecimalForDisplay(0.75, 2) // returns '0.75' Copy
// device region FRformatDecimalForDisplay(0.75, 2) // returns '0,75'// device region USformatDecimalForDisplay(0.75, 2) // returns '0.75'
Formats a number for display using the device region's decimal separator.