CAPD::DynSys Library  6.0.0
capd::rounding::DoubleRounding Class Reference

Definition of class that switches rounding modes of double numbers. More...

#include <capd/rounding/DoubleRounding.h>

Public Member Functions

 DoubleRounding ()
 Call initialization of Floating Point Unit. More...
 

Static Public Member Functions

static void roundNearest ()
 Sets rounding to nearest mode. More...
 
static void roundUp ()
 Sets rounding up mode. More...
 
static void roundDown ()
 Sets rounding down mode. More...
 
static void roundCut ()
 Sets rounding towards zero mode. More...
 
static RoundingMode test ()
 Returns the actual rounding mode. More...
 
static bool isWorking ()
 Tests that all rounding modes works correctly. Returns false is they don't. More...
 

Detailed Description

Definition of class that switches rounding modes of double numbers.

Author
Tomasz Kapela
Date
11-01-2006

Constructor & Destructor Documentation

◆ DoubleRounding()

capd::rounding::DoubleRounding::DoubleRounding ( )

Call initialization of Floating Point Unit.

Member Function Documentation

◆ isWorking()

bool capd::rounding::DoubleRounding::isWorking ( )
static

Tests that all rounding modes works correctly. Returns false is they don't.

◆ roundCut()

static void capd::rounding::DoubleRounding::roundCut ( )
static

Sets rounding towards zero mode.

◆ roundDown()

static void capd::rounding::DoubleRounding::roundDown ( )
static

Sets rounding down mode.

◆ roundNearest()

static void capd::rounding::DoubleRounding::roundNearest ( )
static

Sets rounding to nearest mode.

◆ roundUp()

static void capd::rounding::DoubleRounding::roundUp ( )
static

Sets rounding up mode.

◆ test()

RoundingMode capd::rounding::DoubleRounding::test ( )
static

Returns the actual rounding mode.


The documentation for this class was generated from the following files: