RPA JS 扩展开发文档

RPA JS 扩展开发文档

  • SDK接口说明
  • 代码示例

xsy-breeze-ui-rpa > BigNumber > shiftedBy

BigNumber.shiftedBy() method

Returns a BigNumber whose value is the value of this BigNumber shifted by n places.

The shift is of the decimal point, i.e. of powers of ten, and is to the left if n is negative or to the right if n is positive.

The return value is always exact and unrounded.

Throws if n is invalid.

x = new BigNumber(1.23)
x.shiftedBy(3)                      // '1230'
x.shiftedBy(-3)                     // '0.00123'

Signature:

shiftedBy(n: number): BigNumber;

Parameters

ParameterTypeDescription
nnumber

Returns:

BigNumber

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