Number of digits before and after the decimal point - Function

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.
Remove from Favorite Scripts Add to Favorite Scripts
Join the Discord Server for more info about the published tools.
Home Stock Screener Forex Screener Crypto Screener Economic Calendar Shows How It Works Chart Features Pricing House Rules Moderators Website & Broker Solutions Widgets Charting Solutions Lightweight Charting Library Help Center Refer a friend Feature Request Blog & News FAQ Wiki Twitter
Profile Profile Settings Account and Billing Refer a friend My Support Tickets Help Center Ideas Published Followers Following Private Messages Chat Sign Out