Menu

Enumerations

Richard

Enumerations:

// This is the value of PI

define CPI "3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679"

// This is the value of the natural log base

define CE "2.7182818284590452353602874713526624977572470936999595749669676277240766303535475945713821785251664274"

// This is the value to multiply degrees by to convert to Radians

define CTORAD "0.0174532927777777777777777777777777778"

// This is the value of sqr(2)

define CSQR2 "1.41421356237309504880168872420969807857"

// This is the value of PHI

define CPHI "1.618033988749894848204586834365638117720"

// This is the value of Lambda

define CLAMBDA "0.577215664901532860606512090082402431042"

// this is the value of the golden ratio

define CGOLDENRATIO "1.6180339887498948482045868343656381177203091798057628621354486227052604628189024497072072041893911374"

// the is the value 2-sqr(3)

define C2SQR3 "3.4641016151377545870548926830117"

// This is the value of sqr(3)

define CSQR3 "1.7320508075688772935274463415059"

public enum class HowToHandleRoundingEnum:int{

DropRemaining=0,
RoundUp=1,
FiveOrBetterUp=2

};

This is used in the Dec class to describe how to handle rounding when the DecimalLimit has been reached.

public enum class Radix : int{

_Undefined=-1,
_Binary=2,
_OctaDecimal=8,
_Decimal=10,
_HexaDecimal=32,
_Base32=32,
_Base64=64

};

This enumeration is used throughout to describe what Radix to use when converting to/from string.

public enum class Sign : int{

_Undefined=-1,
_Positive=0,
_Negative=1

};

This enumaration is used throughout to show the sign of a givin instance.

public enum class TraceLevel:int{

None=5,
Basic=10,
Standard=20,
Debug=35

};

This enumeration is used when using tracing to help debug the libraries.


Related

Wiki: Home

MongoDB Logo MongoDB
Gen AI apps are built with MongoDB Atlas
Atlas offers built-in vector search and global availability across 125+ regions. Start building AI apps faster, all in one place.