Project Euler Solutions
constants

The frequently used constants in this file. More...

const BCD_int c::include::bcd::BCD_two
 The BCD_two constant is used to represent the commonly used value two. More...
 
const BCD_int c::include::bcd::BCD_one
 The BCD_one constant is used to represent the commonly used value one. More...
 
const BCD_int c::include::bcd::BCD_zero
 The BCD_zero constant is used to represent the commonly used value zero. More...
 
const BCD_int c::include::bcd::BCD_nan
 The BCD_nan constant is used to represent the commonly used value NaN. More...
 

Detailed Description

The frequently used constants in this file.

constants

Variable Documentation

const BCD_int c::include::bcd::BCD_nan
Initial value:
= {
.error = ORIG_NAN,
.orig_error = ORIG_NAN,
.constant = true,
}
this is the original NaN
Definition: bcd.h:49

The BCD_nan constant is used to represent the commonly used value NaN.

const BCD_int c::include::bcd::BCD_one
Initial value:
= {
.data = (packed_BCD_pair[]) {1},
.bcd_digits = 1,
.decimal_digits = 1,
.constant = true
}
uint8_t packed_BCD_pair
An alias for uint8_t that shows it is intended to store packed BCD data.
Definition: bcd.h:32

The BCD_one constant is used to represent the commonly used value one.

const BCD_int c::include::bcd::BCD_two
Initial value:
= {
.data = (packed_BCD_pair[]) {2},
.bcd_digits = 1,
.decimal_digits = 1,
.even = true,
.constant = true
}
uint8_t packed_BCD_pair
An alias for uint8_t that shows it is intended to store packed BCD data.
Definition: bcd.h:32

The BCD_two constant is used to represent the commonly used value two.

const BCD_int c::include::bcd::BCD_zero
Initial value:
= {
.zero = true,
.even = true,
.constant = true
}

The BCD_zero constant is used to represent the commonly used value zero.