Convert a SupportedNumber or RawAmount into RawAmount with optional specified decimals. The function throws error under these conditions:
The input number to convert.
Optional
The optional number of decimals to use for the conversion.
Will throw an error if the input number is not a base-10 number or the specified decimals is invalid.
Convert a SupportedNumber or RawAmount into RawAmount with optional specified decimals. The function throws error under these conditions: