Direct-BT v3.3.0-1-gc2d430c
Direct-BT - Direct Bluetooth Programming.
Functions
jau::fractions_i64 Namespace Reference

fractions namespace to provide fraction constants using int64_t as underlying integral integer type. More...

Functions

constexpr const jau::fraction_i64 days (86 '400l, 1lu)
 days is 86400/1 More...
 
constexpr const jau::fraction_i64 giga (1 '000 '000 '000l, 1lu)
 giga is 10^9 More...
 
constexpr const jau::fraction_i64 hours (3 '600l, 1lu)
 hours is 3660/1 More...
 
constexpr const jau::fraction_i64 kilo (1 '000l, 1lu)
 kilo is 10^3 More...
 
constexpr const jau::fraction_i64 mega (1 '000 '000l, 1lu)
 mega is 10^6 More...
 
constexpr const jau::fraction_i64 micro (1l, 1 '000 '000lu)
 micro is 10^-6 More...
 
constexpr const jau::fraction_i64 milli (1l, 1 '000lu)
 milli is 10^-3 More...
 
constexpr const jau::fraction_i64 minutes (60l, 1lu)
 minutes is 60/1 More...
 
constexpr const jau::fraction_i64 nano (1l, 1 '000 '000 '000lu)
 nano is 10^-9 More...
 
constexpr const jau::fraction_i64 one (1l, 1lu)
 one is 10^0 or 1/1 More...
 
constexpr const jau::fraction_i64 pico (1l, 1 '000 '000 '000 '000lu)
 pico is 10^-12 More...
 
constexpr const jau::fraction_i64 seconds (1l, 1lu)
 seconds is 1/1 More...
 
constexpr const jau::fraction_i64 tera (1 '000 '000 '000 '000l, 1lu)
 tera is 10^12 More...
 
constexpr const jau::fraction_i64 years (31 '557 '600l, 1lu)
 years is 31'557'600/1 using 365.2425 days per year More...
 
constexpr const jau::fraction_i64 zero (0l, 1lu)
 zero is 0/1 More...
 

Detailed Description

fractions namespace to provide fraction constants using int64_t as underlying integral integer type.

Function Documentation

◆ tera()

constexpr const jau::fraction_i64 jau::fractions_i64::tera ( 1 '000 '000 '000 '  000l,
1lu   
)
inlineconstexpr

tera is 10^12

Here is the caller graph for this function:

◆ giga()

constexpr const jau::fraction_i64 jau::fractions_i64::giga ( 1 '000 '000 '  000l,
1lu   
)
inlineconstexpr

giga is 10^9

Here is the caller graph for this function:

◆ mega()

constexpr const jau::fraction_i64 jau::fractions_i64::mega ( 1 '000 '  000l,
1lu   
)
inlineconstexpr

mega is 10^6

Here is the caller graph for this function:

◆ years()

constexpr const jau::fraction_i64 jau::fractions_i64::years ( 31 '557 '  600l,
1lu   
)
inlineconstexpr

years is 31'557'600/1 using 365.2425 days per year

Here is the caller graph for this function:

◆ days()

constexpr const jau::fraction_i64 jau::fractions_i64::days ( 86 '  400l,
1lu   
)
inlineconstexpr

days is 86400/1

Here is the caller graph for this function:

◆ hours()

constexpr const jau::fraction_i64 jau::fractions_i64::hours ( 3 '  600l,
1lu   
)
inlineconstexpr

hours is 3660/1

Here is the caller graph for this function:

◆ kilo()

constexpr const jau::fraction_i64 jau::fractions_i64::kilo ( 1 '  000l,
1lu   
)
inlineconstexpr

kilo is 10^3

Here is the caller graph for this function:

◆ minutes()

constexpr const jau::fraction_i64 jau::fractions_i64::minutes ( 60l  ,
1lu   
)
inlineconstexpr

minutes is 60/1

Here is the caller graph for this function:

◆ seconds()

constexpr const jau::fraction_i64 jau::fractions_i64::seconds ( 1l  ,
1lu   
)
inlineconstexpr

seconds is 1/1

Here is the caller graph for this function:

◆ one()

constexpr const jau::fraction_i64 jau::fractions_i64::one ( 1l  ,
1lu   
)
inlineconstexpr

one is 10^0 or 1/1

Here is the caller graph for this function:

◆ zero()

constexpr const jau::fraction_i64 jau::fractions_i64::zero ( 0l  ,
1lu   
)
inlineconstexpr

zero is 0/1

Examples
test_lfringbuffer11.cpp.
Here is the caller graph for this function:

◆ milli()

constexpr const jau::fraction_i64 jau::fractions_i64::milli ( 1l  ,
1 '  000lu 
)
inlineconstexpr

milli is 10^-3

Here is the caller graph for this function:

◆ micro()

constexpr const jau::fraction_i64 jau::fractions_i64::micro ( 1l  ,
1 '000 '  000lu 
)
inlineconstexpr

micro is 10^-6

Here is the caller graph for this function:

◆ nano()

constexpr const jau::fraction_i64 jau::fractions_i64::nano ( 1l  ,
1 '000 '000 '  000lu 
)
inlineconstexpr

nano is 10^-9

Here is the caller graph for this function:

◆ pico()

constexpr const jau::fraction_i64 jau::fractions_i64::pico ( 1l  ,
1 '000 '000 '000 '  000lu 
)
inlineconstexpr

pico is 10^-12

Here is the caller graph for this function: