Use "%.10g", rather than "%f", for floating-point numbers. That will
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 25 Apr 2002 06:34:42 +0000 (06:34 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 25 Apr 2002 06:34:42 +0000 (06:34 +0000)
commit40372926f01134350b23039fc3f2c79b23d93740
tree7eec1a1901f90288559f3ae6e4888ccf91ae9720
parentbbf665269e61f4975eaecaa6227c2787b33ad3fe
Use "%.10g", rather than "%f", for floating-point numbers.  That will
display values that would fit in a 32-bit integer as integers, leaving
out all trailing zeroes after the decimal point (and leaving out the
decimal point if there are no digits left after the decimal point once
trailing zeroes are removed), and will use scientific notation for small
fractions or large numbers.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5248 f5534014-38df-0310-8fa8-9805f1628bb7
packet-ldp.c
packet-lmp.c
packet-ospf.c
packet-rsvp.c