diff options
author | Yann Herklotz <ymherklotz@gmail.com> | 2017-05-19 20:08:23 +0100 |
---|---|---|
committer | Yann Herklotz <ymherklotz@gmail.com> | 2017-05-19 20:08:23 +0100 |
commit | 3308d13ad04fac43e7a111b299ff9444aea4ab9f (patch) | |
tree | 54a91113f75e506318101acf3151d3b11d309e96 /test/double_size.cpp | |
parent | e15b2c6dd405d008d9e892608c209fd980bcd8ff (diff) | |
download | YAGE-3308d13ad04fac43e7a111b299ff9444aea4ab9f.tar.gz YAGE-3308d13ad04fac43e7a111b299ff9444aea4ab9f.zip |
Adding math to yage
Diffstat (limited to 'test/double_size.cpp')
-rw-r--r-- | test/double_size.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/double_size.cpp b/test/double_size.cpp new file mode 100644 index 00000000..25c7cef7 --- /dev/null +++ b/test/double_size.cpp @@ -0,0 +1,11 @@ +#include <iostream> + +int main() +{ + std::cout<<"Size of double: "<<sizeof(double)<<'\n'; + std::cout<<"Size of long double: "<<sizeof(long double)<<'\n'; + + if(sizeof(long double) > 8) + return 0; + return 1; +} |