FreeBASIC  0.91.0
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 ),
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 ),
25 }