Menu

[424828]: / src / rtlib / io_lprint_fp.c  Maximize  Restore  History

Download this file

26 lines (20 with data), 640 Bytes

 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
/* print [#] function (floating point) */
#include "fb.h"
/*:::::*/
FBCALL void fb_LPrintSingle ( int fnum, float val, int mask )
{
char buffer[8+1+9+1];
fb_LPrintInit();
fb_PrintFixString( fnum,
fb_hFloat2Str( (double)val, buffer, 7, FB_F2A_ADDBLANK ),
FB_PRINT_CONVERT_BIN_NEWLINE(mask) );
}
/*:::::*/
FBCALL void fb_LPrintDouble ( int fnum, double val, int mask )
{
char buffer[16+1+9+1];
fb_LPrintInit();
fb_PrintFixString( fnum,
fb_hFloat2Str( val, buffer, 16, FB_F2A_ADDBLANK ),
FB_PRINT_CONVERT_BIN_NEWLINE(mask) );
}
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.