Menu

#23 Hexadecimal Rounding Error

2.x
open
nobody
None
5
2019-03-11
2019-03-11
Gent
No

Hello, and thank you for maintaining such a useful piece of software.

I produced the following output from wcalc and believe it may indicate a bug:

 echo '256^(7/16)' | wcalc -q -h
   0xb.504f333f9de6484597d89b3754abe
 echo '256^(7/16)' | wcalc -q -h -P0
   0x5
 echo '256^(7/16)' | wcalc -q -h -P0 --defaults
   0xb
 cat ~/.wcalcrc
color           = yes
engineering     = never
history_limit   = no
precision_guard = yes
colors[approx_answer] = boldcyan
colors[exact_answer]  = boldgreen
colors[prompt]        = boldblue
 sed -i 's/^\(engineering\) /#\1/g' ~/.wcalcrc 
 echo '256^(7/16)' | wcalc -q -h -P0
   0xb
 wcalc -v
wcalc 2.5

Discussion


Log in to post a comment.

MongoDB Logo MongoDB