[Bro] - large double are not printed/written correctly

william de ping bill.de.ping at gmail.com
Sun Oct 29 07:20:52 PDT 2017


I have this simple script :

event bro_init()
local a=-3.019159e-8;
print "a",a;
local s=fmt("%e",a);
print "s",s;

results :
a, -0
s, -3.019159e-08

the printing of variable a is important because its -0 once written in a
log file.

is there anyway of printing\writing large doubles ?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ICSI.Berkeley.EDU/pipermail/bro/attachments/20171029/e638fc59/attachment.html 

More information about the Bro mailing list