# NumFracDigits Function

• Updated

Returns the number of digits in a given number that appear to the right of the decimal point, not counting trailing zeros.

Syntax

 Returns the number of digits in a given number that appear to the right of the decimal point, not counting trailing zeros. NumFracDigits(value)

 Arguments:

 value Numeric - The number whose fractional digits should be counted. Some input numbers will be rounded because the computer cannot store all the places.

Remarks

• Example: NumFracDigits(123.4567) returns 4.
• Example: NumFracDigits(1234567890.1234567890123456789012345) returns 19 because the input is rounded to 1234567890.1234567890123456789.
• Example: NumFracDigits(0.12345678901234567890123456789012345) returns 28 because the input is rounded to 0.1234567890123456789012345679.
• Example: NumFracDigits(0.00123000) returns 5 because trailing zeros are not counted, but leading zeros in the fractional part are.

0 out of 0 found this helpful

<% if (previousArticle || nextArticle) { %>
<% if (previousArticle) { %>
<% if (previousTitle) { %>

#### <%= previousTitle %>

<% } %> <%= previousArticle.title %>
<% } %> <% if (nextArticle) { %>
<% if (nextTitle) { %>

#### <%= nextTitle %>

<% } %> <%= nextArticle.title %>
<% } %>
<% } %>
<% if (items.length > 1) { %>

<% items.forEach(function(item) { %>
1. <%= item.name %> <%= partial('partial-table-of-contents', { items: item.children, partial: partial }) %>
2. <% }); %>
<% } %>
<% if (items.length) { %>
<% items.forEach(function(item) { %>
1. <%= item.name %> <%= partial('partial-table-of-contents', { items: item.children, partial: partial }) %>
2. <% }); %>
<% } %>
<% if (children.length) { %>
<% children.forEach(function(child, index) { %>
<%= child.innerHTML %>
<% }); %>
<% } %>