SyDEVS  v0.7
Simulation-based analysis of complex systems involving people, devices, physical elements, and dynamic environments.
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 #include <stdexcept>
8 
9 namespace sydevs {
10 
11 
12 using int8 = int8_t;
13 using int16 = int16_t;
14 using int32 = int32_t;
15 using int64 = int64_t;
16 
17 using uint8 = uint8_t;
18 using uint16 = uint16_t;
19 using uint32 = uint32_t;
20 using uint64 = uint64_t;
21 
22 using float32 = float;
23 using float64 = double;
24 
25 const float64 pi = 3.14159265358979323846;
26 
27 
28 } // namespace
29 
30 #endif
Definition: arraynd.h:8
int16_t int16
Definition: number_types.h:13
uint16_t uint16
Definition: number_types.h:18
int32_t int32
Definition: number_types.h:14
uint32_t uint32
Definition: number_types.h:19
int8_t int8
Definition: number_types.h:12
double float64
Definition: number_types.h:23
uint8_t uint8
Definition: number_types.h:17
uint64_t uint64
Definition: number_types.h:20
float float32
Definition: number_types.h:22
int64_t int64
Definition: number_types.h:15
const float64 pi
Definition: number_types.h:25