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

描述

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.
评论
Dadoo_
it's brillant, thank you
更多