Defined in src-ts/wasm/openpit_js.d.ts:5314 Constructorsconstructor new Volume ( value ) : Volume Parameters value : string | number | bigint Defined in src-ts/wasm/openpit_js.d.ts:5436 Methods[dispose] [dispose] ( ) : void Returns void Defined in src-ts/wasm/openpit_js.d.ts:5316 add add ( other ) : Volume Defined in src-ts/wasm/openpit_js.d.ts:5325 calculate Quantity calculate Quantity ( price ) : Quantity Defined in src-ts/wasm/openpit_js.d.ts:5333 clone clone ( ) : Volume Defined in src-ts/wasm/openpit_js.d.ts:5341 compare compare ( other ) : number Returns number Defined in src-ts/wasm/openpit_js.d.ts:5345 div div ( scalar ) : Volume Defined in src-ts/wasm/openpit_js.d.ts:5354 equals equals ( other ) : boolean Returns boolean Defined in src-ts/wasm/openpit_js.d.ts:5358 free free ( ) : void Returns void Defined in src-ts/wasm/openpit_js.d.ts:5315 is Zero is Zero ( ) : boolean Returns boolean Defined in src-ts/wasm/openpit_js.d.ts:5406 mod mod ( scalar ) : Volume Defined in src-ts/wasm/openpit_js.d.ts:5415 mul mul ( scalar ) : Volume Defined in src-ts/wasm/openpit_js.d.ts:5425 sub sub ( other ) : Volume Defined in src-ts/wasm/openpit_js.d.ts:5444 to Cash Flow Inflow to Cash Flow Inflow ( ) : CashFlow Defined in src-ts/wasm/openpit_js.d.ts:5448 to Cash Flow Outflow to Cash Flow Outflow ( ) : CashFlow Defined in src-ts/wasm/openpit_js.d.ts:5452 toJSON toJSON ( ) : string Returns string Defined in src-ts/wasm/openpit_js.d.ts:5456 to Position Size to Position Size ( ) : PositionSize Defined in src-ts/wasm/openpit_js.d.ts:5460 to String to String ( ) : string Returns string Defined in src-ts/wasm/openpit_js.d.ts:5464 Staticfrom Float from Float ( value ) : Volume Defined in src-ts/wasm/openpit_js.d.ts:5366 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:5377 Staticfrom Int from Int ( value ) : Volume Defined in src-ts/wasm/openpit_js.d.ts:5385 Staticfrom String from String ( value ) : Volume Defined in src-ts/wasm/openpit_js.d.ts:5393 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:5402 Staticzero zero ( ) : Volume Defined in src-ts/wasm/openpit_js.d.ts:5468
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.