Math.SetRoundMode

From RAD Studio VCL Reference
Jump to: navigation, search

Contents

Delphi Information

From Math.pas

	function SetRoundMode(const RoundMode: TFPURoundingMode): TFPURoundingMode;


Unit: Math

Type: function

Visibility: public

C++ Information

From Math.hpp

	Math::TFPURoundingMode __fastcall SetRoundMode(Math::TFPURoundingMode RoundMode);


Unit: Math

Type: function

Description

Sets the FPU rounding mode.


Call SetRoundingMode to specify how the FPU handles rounding issues. The rounding mode can be any of the following values:



Value Meaning

rmNearest

Rounds to the closest value.

rmDown

Rounds toward negative infinity.

rmUp

Rounds toward positive infinity.

rmTruncate

Truncates the value, rounding positive numbers down and negative numbers up.



See Also

Personal tools
Translations
Newest Version