mirror of
https://github.com/zeek/zeek.git
synced 2025-10-08 17:48:21 +00:00
Do not use scientific notations when printing doubles in logs.
Closes BIT-1558.
This commit is contained in:
parent
3581ead0d9
commit
d86bf15dbf
7 changed files with 197 additions and 5 deletions
|
@ -97,6 +97,15 @@ void modp_dtoa(double value, char* buf, int precision);
|
|||
*/
|
||||
void modp_dtoa2(double value, char* buf, int precision);
|
||||
|
||||
/** \brief convert a floating point number to char buffer with a
|
||||
* variable-precision format, no trailing zeros, and no
|
||||
* scientific notation.
|
||||
*
|
||||
* Other than avoiding scientific notation, this is the same as mop_dtoa2. It does however
|
||||
* require the max buffer length. The buffer will always be null-terminated.
|
||||
*/
|
||||
void modp_dtoa3(double value, char* buf, int n, int precision);
|
||||
|
||||
END_C
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue