UNPKG

422 BTypeScriptView Raw
1type AnyFloat = number | Number;
2interface Options {
3 bitLength?: 32 | 64;
4 isLe?: boolean;
5}
6/**
7 * @name floatToU8a
8 * @description Converts a float into a U8a representation (While we don't use BE in SCALE
9 * we still allow for either representation, although, as elsewhere, isLe is default)
10 */
11export declare function floatToU8a(value?: string | AnyFloat, { bitLength, isLe }?: Options): Uint8Array;
12export {};