SetRoundingLLVM

Documentation for SetRoundingLLVM.

SetRoundingLLVM.llvm_setrounding โ€” Method
llvm_setrounding(round::RoundingMode)

Set the rounding mode of Float64, controlling the rounding of basic arithmetic functions (+, -, *, / and sqrt) and type conversion. Other numerical functions may give incorrect or invalid values when using rounding modes other than the default RoundNearest

Available modes are:

  • RoundToZero
  • RoundNearest
  • RoundUp
  • RoundDown
source