Closed theinventor closed 9 years ago
Hey there, can you explain if I'm doing this right?
2.1.5 :111 > Filesize.from("#{space_used} B").to_f => 125507590928.0 2.1.5 :112 > Filesize.from("#{space_used} B").pretty => "116.89 GiB" 2.1.5 :113 > Filesize.from("#{space_used} B").to_f("Gb") => 125.507590928
Shouldn't the to_f("Gb") turn into 116.89 ?
nevermind, it's GiB in the to_f :)
Hey there, can you explain if I'm doing this right?
Shouldn't the to_f("Gb") turn into 116.89 ?