MOS Source Code
Loading...
Searching...
No Matches
float_double_conversion.c File Reference
#include <math.h>
#include <stdio.h>
#include <string.h>
#include <pb_decode.h>
#include <pb_encode.h>
#include "doublemsg.pb.h"
#include "unittests.h"
+ Include dependency graph for float_double_conversion.c:

Go to the source code of this file.

Classes

struct  FloatMsg
 

Macros

#define _USE_MATH_DEFINES   1
 
#define TESTVALUES_COUNT   (sizeof(testvalues)/sizeof(testvalues[0]))
 

Functions

int main ()
 

Variables

static const double testvalues []
 

Macro Definition Documentation

◆ _USE_MATH_DEFINES

#define _USE_MATH_DEFINES   1

Definition at line 1 of file float_double_conversion.c.

◆ TESTVALUES_COUNT

#define TESTVALUES_COUNT   (sizeof(testvalues)/sizeof(testvalues[0]))

Definition at line 30 of file float_double_conversion.c.

Referenced by main().

Function Documentation

◆ main()

int main ( void )

Definition at line 32 of file float_double_conversion.c.

+ Here is the call graph for this function:

Variable Documentation

◆ testvalues

const double testvalues[]
static
Initial value:
= {
0.0, -0.0, 0.1, -0.1,
M_PI, -M_PI, 123456.789, -123456.789,
1e38, -1e38, 1e39, -1e39,
1e-38, -1e-38, 1e-39, -1e-39,
3.14159e-37,-3.14159e-37, 3.14159e-43, -3.14159e-43,
1e-60, -1e-60, 1e-45, -1e-45,
0.99999999999999, -0.99999999999999, 127.999999999999, -127.999999999999
}

Definition at line 17 of file float_double_conversion.c.

Referenced by main().