blob: 0258de2155dcea7083ad2769b2a212a9bfccce48 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
/***************************************************************
__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 */
|