/*************************************************************** __MPU_IOREAL.H This file contains declarations of functions for REAL input/output operations. PART OF : MPU - library . USAGE : Internal only . NOTE : Include "libmpu.h" before this FILE . Copyright (C) 2000 - 2024 by Andrew V.Kosteltsev. All Rights Reserved. ***************************************************************/ #ifndef __MPU_IOREAL_H #define __MPU_IOREAL_H #define ASCII_TO_REAL_ERROR (-1) /* error */ #define LONGHAND_REAL_NUMBER 0 /* прочитано простое число */ /* (например, 1e1) */ #define REAL_PART_OF_COMPLEX 1 /* прочитана вещественная часть */ /* комплексного числа */ /* (например, 1r1) */ #define IMAGINARY_OF_COMPLEX 2 /* прочитана мнимая часть */ /* комплексного числа */ /* (например, 1i1, 1j1) */ #ifdef __cplusplus extern "C" { #endif extern void ei_real_to_ascii ( __mpu_char8_t *string, EMUSHORT *ei, int ndigs, int exp_delim, int exp_digs, int gen_plus, int nb ); extern int ei_ascii_to_real ( EMUSHORT *ei, __mpu_char8_t *ss, int nb ); #ifdef __cplusplus } /* ... extern "C" */ #endif #endif /* __MPU_IOREAL_H */