Skip to main content

Function: componentMicro()

componentMicro(quantity, rate): number

Defined in: packages/agentos/src/safety/runtime/CreditRates.ts:151

A component's charge: quantity units at rate, the exact product rounded up once to the micro-dollar.

Parameters​

quantity​

number

rate​

RationalRate

Returns​

number

Throws​

When the quantity is not a whole number zero or more, the rate is not a RationalRate, or the charge is past Number's exact integer range.