SUMO - Simulation of Urban MObility
StdDefs.cpp File Reference
#include "StdDefs.h"
Include dependency graph for StdDefs.cpp:

Go to the source code of this file.

Functions

double roundBits (double x, int fractionBits)
 round to the given number of mantissa bits beyond the given number More...
 
double truncate (double x, int fractionBits)
 discrds mantissa bits beyond the given number More...
 

Variables

bool gDebugFlag1 = false
 global utility flags for debugging More...
 
bool gDebugFlag2 = false
 
bool gDebugFlag3 = false
 
bool gDebugFlag4 = false
 
bool gHumanReadableTime = false
 
int gPrecision = 2
 the precision for floating point outputs More...
 
int gPrecisionGeo = 6
 
bool gSimulation = false
 

Detailed Description

Author
Jakob Erdmann
Michael Behrisch
Laura Bieker
Date
2014-01-07
Version
$Id$

Definition in file StdDefs.cpp.

Function Documentation

◆ roundBits()

double roundBits ( double  x,
int  fractionBits 
)

round to the given number of mantissa bits beyond the given number

Definition at line 41 of file StdDefs.cpp.

Referenced by ISNAN().

◆ truncate()

double truncate ( double  x,
int  fractionBits 
)

discrds mantissa bits beyond the given number

Definition at line 37 of file StdDefs.cpp.

Referenced by ISNAN().

Variable Documentation

◆ gDebugFlag1

◆ gDebugFlag2

◆ gDebugFlag3

bool gDebugFlag3 = false

Definition at line 34 of file StdDefs.cpp.

Referenced by ISNAN().

◆ gDebugFlag4

bool gDebugFlag4 = false

Definition at line 35 of file StdDefs.cpp.

Referenced by ISNAN().

◆ gHumanReadableTime

bool gHumanReadableTime = false

Definition at line 29 of file StdDefs.cpp.

Referenced by SystemFrame::checkOptions(), ISNAN(), and time2string().

◆ gPrecision

◆ gPrecisionGeo

◆ gSimulation

bool gSimulation = false

Definition at line 30 of file StdDefs.cpp.

Referenced by ISNAN(), main(), and SUMOVehicleParserHelper::parseVTypeEmbedded().