SyDEVS  v0.6.7
Multiscale Simulation and Systems Modeling Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
number_types.h
Go to the documentation of this file.
1 #pragma once
2 #ifndef SYDEVS_NUMBER_TYPES_H_
3 #define SYDEVS_NUMBER_TYPES_H_
4 
5 #include <stdint.h>
6 #include <limits>
7 
8 namespace sydevs {
9 
10 
11 using int8 = int8_t;
12 using int16 = int16_t;
13 using int32 = int32_t;
14 using int64 = int64_t;
15 
16 using uint8 = uint8_t;
17 using uint16 = uint16_t;
18 using uint32 = uint32_t;
19 using uint64 = uint64_t;
20 
21 using float32 = float;
22 using float64 = double;
23 
24 const float64 pi = 3.14159265358979323846;
25 
26 
27 } // namespace
28 
29 #endif
uint32_t uint32
Definition: number_types.h:18
uint64_t uint64
Definition: number_types.h:19
int32_t int32
Definition: number_types.h:13
const float64 pi
Definition: number_types.h:24
int16_t int16
Definition: number_types.h:12
uint8_t uint8
Definition: number_types.h:16
uint16_t uint16
Definition: number_types.h:17
int64_t int64
Definition: number_types.h:14
float float32
Definition: number_types.h:21
int8_t int8
Definition: number_types.h:11
double float64
Definition: number_types.h:22