| 1: | func @ftrunc = <{FROM: Type, TO: Type}> (from: FROM) #unsafe -> TO; |
Truncate any floating-point type to any other smaller floating-point type. Requires that @numBits<{FROM, false}>() > @numBits<{TO, false}>().
FROM: type to convert from - must be floating-point or vector or floating-point
TO: type to convert to - must be floating-point or vector or floating-point
from: value to convert
Returns converted value
FROM and TO must be both a vector or neither a vector. If they are a vector, they must contain the same number of elements.
(TODO)
| @trunc | Truncate any integral type to any other smaller integral type |