A forex stock may have five decimals point like EURUSD 1.22189 Another may have two decimal points like BITCOIN/USD like 40102.16
I want the number of digits after the decimal point, i.e. 5 digits in EURUSD and 2 digits in BITCOIN/USD example above.
How do I achieve this in Pinescript?