TradingView
KryptoNight
Oct 13, 2019 5:51 PM

Number of digits before and after the decimal point - Function 

Bitcoin / US Dollar Perpetual Inverse Swap ContractBitMEX

Description

Function - Number of digits before and after the decimal point

Detect the number of digits in integers and floats, before the decimal and after it.
It also works for negative numbers.

There are some rounding issues, but the currently maximum supported number can have safely up to 3 digits after the decimal point.
Comments
Dadoo_
it's brillant, thank you
More