Numworks Epsilon  1.4.1
Graphing Calculator Operating System
long.c
Go to the documentation of this file.
1 #include <quiz.h>
2 #include <stdint.h>
3 #include <assert.h>
4 
6  assert(i-j < 1000000);
7  assert(j-i < 1000000);
8 }
9 
10 QUIZ_CASE(long_arithmetic) {
11  int64_t i = 123456789101112;
12  assert((float)i == 1.23456789101112e14f);
13  assert((double)i == 1.23456789101112e14);
14  float f = 123456789101112.12345f;
16  double d = 123456789101112.12345f;
18 }
#define assert(e)
Definition: assert.h:9
void assert_int64t_approximatively_equals_int64t(int64_t i, int64_t j)
Definition: long.c:5
QUIZ_CASE(long_arithmetic)
Definition: long.c:10
signed long long int64_t
Definition: stdint.h:12