[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Higher accuracy output from human_readable()
From: |
Darshit Shah |
Subject: |
Higher accuracy output from human_readable() |
Date: |
Thu, 15 Sep 2016 23:54:46 +0200 |
User-agent: |
NeoMutt/20160910 (1.7.0) |
Hi,
I'm trying to use the human_readable() method from module human. I am
currently using it with the following options:
human_autoscale | human_base_1024 | human_SI | human_B | \
human_round_to_nearest | human_group_digits
It shows the value correctly with one decimal point up to 10 MiB. Beyond
that, the function always returns a value without any decimal points. I
would like the function to always return a value with 2 decimal points,
even if it means returning xx.00 MiB for example. How can I achieve this
using the module?
--
Thanking You,
Darshit Shah
PGP Fingerprint: 7845 120B 07CB D8D6 ECE5 FF2B 2A17 43ED A91A 35B6
signature.asc
Description: PGP signature
- Higher accuracy output from human_readable(),
Darshit Shah <=