大数值,用于支持数值超过一定常量的数值,不支持浮点数

Constructor

@:value({ val : "" })new (val:String = "")

用于支持大数值,value请传入字符串

Parameters:

null

val

Variables

@:value(true)isPositive:Bool = true

是否为正数

value:String

Methods

add (val:String):BigInteger

加法计算

Parameters:

val

Returns:

String

cheak (type:String, big:BigInteger):Bool

检查数字的比较

Parameters:

type

支持>,<,<=,>=,==等比较方法

big

Returns:

Bool

deleteEndNumber (len:Int):BigInteger

删除结尾位数

Parameters:

len

Returns:

BigInteger

getValues ():Array<Int>

mul (val:String):BigInteger

乘法计算

Parameters:

val

Returns:

BigInteger

pow (val:String):BigInteger

次方运算

Parameters:

val

Returns:

BigInteger

sub (val:String):BigInteger

计算递增减位

Parameters:

null

i