FreeBASIC
0.91.0
Main Page
Data Structures
Files
File List
Globals
io_lprint_fp.c
Go to the documentation of this file.
1
/* print [#] function (floating point) */
2
3
#include "
fb.h
"
4
5
/*:::::*/
6
FBCALL
void
fb_LPrintSingle
(
int
fnum,
float
val,
int
mask )
7
{
8
char
buffer
[8+1+9+1];
9
10
fb_LPrintInit
();
11
fb_PrintFixString
( fnum,
12
fb_hFloat2Str
( (
double
)val, buffer, 7,
FB_F2A_ADDBLANK
),
13
FB_PRINT_CONVERT_BIN_NEWLINE
(mask) );
14
}
15
16
/*:::::*/
17
FBCALL
void
fb_LPrintDouble
(
int
fnum,
double
val,
int
mask )
18
{
19
char
buffer
[16+1+9+1];
20
21
fb_LPrintInit
();
22
fb_PrintFixString
( fnum,
23
fb_hFloat2Str
( val, buffer, 16,
FB_F2A_ADDBLANK
),
24
FB_PRINT_CONVERT_BIN_NEWLINE
(mask) );
25
}
rtlib
io_lprint_fp.c
Generated on Thu Jan 23 2014 19:40:12 for FreeBASIC by
1.8.4