My Project
Functions
convert.h File Reference

Defines interface of convert.c functions (do not modify) More...

#include "iFloat.h"

Go to the source code of this file.

Functions

iFloat_t toiFloat (const char *str)
 
float fromiFloat (iFloat_t x)
 

Detailed Description

This file defines the interface to a C file convert.c that converts between float and iFloat_t types. Thus, you do not need to declare ANY float variables anywhere in your code. Note that the test driver testFloat.c does not use any float variables.

Function Documentation

float fromiFloat ( iFloat_t  x)

Convert a iFloat_t to a float

Parameters
xthe iFloat_t containing bits for a IEEE floating point value
Returns
the value as a float
iFloat_t toiFloat ( const char *  str)

Convert a string to a iFloat_t

Parameters
strthe string to convert
Returns
an iFloat_t containing the IEEE floating point value