Function: accMod

accMod(arg1, arg2): number

数字取余防止精度丢失

Parameters

Name Type Description
arg1 number 数字1
arg2 number 数字2

Returns

number

两数字相除取余

Example

accMod(10, 3)
// => 1

Example

accMod(10.5, 3)
// => 1.5

Example

accMod(-10, 3)
// => -1
ON THIS PAGE