RPA JS 扩展开发文档

RPA JS 扩展开发文档

  • SDK接口说明
  • 代码示例

xsy-breeze-ui-rpa > BigNumber > sd

BigNumber.sd() method

Returns the number of significant digits of the value of this BigNumber, or null if the value of this BigNumber is ±Infinity or NaN.

If includeZeros is true then any trailing zeros of the integer part of the value of this BigNumber are counted as significant digits, otherwise they are not.

Throws if includeZeros is invalid.

x = new BigNumber(9876.54321)
x.sd()                         // 9
y = new BigNumber(987000)
y.sd(false)                    // 3
y.sd(true)                     // 6

Signature:

sd(includeZeros?: boolean): number;

Parameters

ParameterTypeDescription
includeZerosboolean

Returns:

number

Last updated on 12/16/2020
  • BigNumber.sd() method
  • Parameters
Copyright © 2021 销售易