Defined in src-ts/wasm/openpit_js.d.ts:5628 Constructorsconstructor new Volume ( value ) : Volume Parameters value : string | number | bigint Defined in src-ts/wasm/openpit_js.d.ts:5750 Methods[dispose] [dispose] ( ) : void Returns void Defined in src-ts/wasm/openpit_js.d.ts:5630 add add ( other ) : Volume Defined in src-ts/wasm/openpit_js.d.ts:5639 calculate Quantity calculate Quantity ( price ) : Quantity Defined in src-ts/wasm/openpit_js.d.ts:5647 clone clone ( ) : Volume Defined in src-ts/wasm/openpit_js.d.ts:5655 compare compare ( other ) : number Returns number Defined in src-ts/wasm/openpit_js.d.ts:5659 div div ( scalar ) : Volume Defined in src-ts/wasm/openpit_js.d.ts:5668 equals equals ( other ) : boolean Returns boolean Defined in src-ts/wasm/openpit_js.d.ts:5672 free free ( ) : void Returns void Defined in src-ts/wasm/openpit_js.d.ts:5629 is Zero is Zero ( ) : boolean Returns boolean Defined in src-ts/wasm/openpit_js.d.ts:5720 mod mod ( scalar ) : Volume Defined in src-ts/wasm/openpit_js.d.ts:5729 mul mul ( scalar ) : Volume Defined in src-ts/wasm/openpit_js.d.ts:5739 sub sub ( other ) : Volume Defined in src-ts/wasm/openpit_js.d.ts:5758 to Cash Flow Inflow to Cash Flow Inflow ( ) : CashFlow Defined in src-ts/wasm/openpit_js.d.ts:5762 to Cash Flow Outflow to Cash Flow Outflow ( ) : CashFlow Defined in src-ts/wasm/openpit_js.d.ts:5766 toJSON toJSON ( ) : string Returns string Defined in src-ts/wasm/openpit_js.d.ts:5770 to Position Size to Position Size ( ) : PositionSize Defined in src-ts/wasm/openpit_js.d.ts:5774 to String to String ( ) : string Returns string Defined in src-ts/wasm/openpit_js.d.ts:5778 Staticfrom Float from Float ( value ) : Volume Defined in src-ts/wasm/openpit_js.d.ts:5680 Staticfrom Float Rounded from Float Rounded ( value , scale , strategy ) : Volume Parameters value : number scale : number strategy : string Defined in src-ts/wasm/openpit_js.d.ts:5691 Staticfrom Int from Int ( value ) : Volume Defined in src-ts/wasm/openpit_js.d.ts:5699 Staticfrom String from String ( value ) : Volume Defined in src-ts/wasm/openpit_js.d.ts:5707 Staticfrom String Rounded from String Rounded ( value , scale , strategy ) : Volume Parameters value : string scale : number strategy : string Defined in src-ts/wasm/openpit_js.d.ts:5716 Staticzero zero ( ) : Volume Defined in src-ts/wasm/openpit_js.d.ts:5782
Constructs from a
DecimalInput(string | number | bigint).A generic
numbermust be a safe integer. UsefromFloatexplicitly for imprecise fractional input.Errors
Throws
ParamErroron an invalid value or type.