scale-floats-to-ints
▸ function scaleFloatsToInts
(as
: number[]): number[]
Defined in scale-to-int/scale-floats-to-ints.ts:20
Returns the result of scaling the given floats by the same power of two such that all floats become integers (bar overflow).
- the result is exact (no round-off can occur, but overflow can)
- can be used to scale polynomials or Shewchuk expansions
Parameters:
Name | Type | Description |
---|---|---|
as | number[] | an array of double precision floating point numbers |
Returns: number[]