jsdataframe.js
function fractionDigits(number) {
  var splitArr = number.toString().split('.');
  return (splitArr.length > 1) ?
    splitArr[1].length :
    0;
}
function fractionDigits(number) {
  var splitArr = number.toString().split('.');
  return (splitArr.length > 1) ?
    splitArr[1].length :
    0;
}
function fractionDigits ( number ) { var splitArr = number . toString ( ) . split ( '.' ) ; return ( splitArr . length > 1 ) ? splitArr [ 1 ] . length : 0 ; }
Helper for retrieving the number of digits after the decimal point for the given number. This function doesn't work for numbers represented in scientific notation, but such numbers will trigger different printing logic anyway.
Helper for retrieving the number of digits after the decimal point for the given number . This function doesn t work for numbers represented in scientific notation but such numbers will trigger different printing logic anyway .