Panther Search Documentation Tutorials Devlogs Downloads Source Code

Documentation > Panther Documentation > Intrinsics > @fext

@fext

Panther
Documentation


1: func @fext = <{FROM: Type, TO: Type}> (from: FROM) -> TO;

  Extend any floating-point type to any other larger floating-point type. Requires that @numBits<{FROM, false}>() < @numBits<{TO, false}>().

Template Parameters

  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

Parameters

  from: value to convert

Return Value

  Returns converted value

Notes

  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.

Example

(TODO)

See Also

@sext Sign extend any integral type to any other larger integral type
@zext Zero extend any integral type to any other larger integral type