]> sigrok.org Git - libsigrok.git/commit - src/strutil.c
Format decimals correctly in sr_si_string_u64()
authorPeter Stuge <redacted>
Tue, 4 Jun 2013 00:20:57 +0000 (02:20 +0200)
committerUwe Hermann <redacted>
Wed, 7 Aug 2013 14:21:57 +0000 (16:21 +0200)
commit094e6b815972240fbc210f8c5ef2eaa8c989fbc0
treef8c7ef006ca0a10bf7bb12d785ec142918818e0b
parentba253f2bb97b7a69ad8b486f411d8d81d33792a4
Format decimals correctly in sr_si_string_u64()

The function previously formatted 1004 as 1.4 k and 1004000 as 1.4 M.
The function now formats 1004 as 1.004 k, 1004000 as 1.004 M and
1004000000 as 1.004 G.

Fixes #73.
strutil.c