tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
ratio.hpp File Reference

Go to the source code of this file.

Classes

struct  ratio< Num, Denom >
 The typename template provides compile-time rational arithmetic support. Each instantiation of this template exactly represents any finite rational number as long as its numerator Num and denominator Denom are representable as compile-time constants of type intmax_t. More...
 

Namespaces

namespace  etl
 

Typedefs

using atto = ratio< 1, 1 '000 '000 '000 '000 '000 '000 >
 
using centi = ratio< 1, 100 >
 
using deca = ratio< 10, 1 >
 
using deci = ratio< 1, 10 >
 
using exa = ratio< 1 '000 '000 '000 '000 '000 '000, 1 >
 
using femto = ratio< 1, 1 '000 '000 '000 '000 '000 >
 
using giga = ratio< 1 '000 '000 '000, 1 >
 
using hecto = ratio< 100, 1 >
 
using kilo = ratio< 1 '000, 1 >
 
using mega = ratio< 1 '000 '000, 1 >
 
using micro = ratio< 1, 1 '000 '000 >
 
using milli = ratio< 1, 1 '000 >
 
using nano = ratio< 1, 1 '000 '000 '000 >
 
using peta = ratio< 1 '000 '000 '000 '000 '000, 1 >
 
using pico = ratio< 1, 1 '000 '000 '000 '000 >
 
using tera = ratio< 1 '000 '000 '000 '000, 1 >