Hi I have problem with parsing -0.000000e+00 on linux( on windows is working).
struct.pack( "d", -0.000000e+00 )
On linux struct.pack change -0.000000e+00 to 0.000000e+00. When i print value before pack is correct but result of struct.pack is like it was 0.000000e+00.
Is there any solution to solve this problem.
I think i need to add negative number witch is closest to 0. How to do that?
EDIT
struct.pack( "d", -0.000000e+00 )
result '\x00\x00\x00\x00\x00\x00\x00\x80'
struct.pack( "!d", -0.000000e+00 )
result '\x00\x00\x00\x00\x00\x00\x00\x00'
struct.pack( "<d", -0.000000e+00 )
result '\x00\x00\x00\x00\x00\x00\x00\x00'
struct.pack( ">d", -0.000000e+00 )
result '\x00\x00\x00\x00\x00\x00\x00\x00'
I want to use "< d" and " > d".
EDIT Sry not error.