OPEN-SOURCE SCRIPT
已更新 How To Count Decimals

Custom f_nDecimals() function returns precision of decimal numbers of the following forms:
const, input, simple, and series of the following types: float, integer, and string.
Error checking is performed for valid numbers and invalid values return NaN.
NOTICE: This is an example script and not meant to be used as an actual strategy. By using this script or any portion thereof, you acknowledge that you have read and understood that this is for research purposes only and I am not responsible for any financial losses you may incur by using this script!
const, input, simple, and series of the following types: float, integer, and string.
Error checking is performed for valid numbers and invalid values return NaN.
NOTICE: This is an example script and not meant to be used as an actual strategy. By using this script or any portion thereof, you acknowledge that you have read and understood that this is for research purposes only and I am not responsible for any financial losses you may incur by using this script!
發行說明
Revision 1Added a compact refactored equivalent version of function: f_nDecimals().
Renamed original annotated version of function to: f_nDecimal5().
Added column to matrix table to compare equivalency.
發行說明
Cosmetic.發行說明
Revision 2Implemented a more detailed grid for testing higher precision values. Increased precision of example output values.
發行說明
Cosmetic.發行說明
Cosmetic.lux ex tenebris • deuro mea umbra absens • Telegram: t.me/allanster
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
lux ex tenebris • deuro mea umbra absens • Telegram: t.me/allanster
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。