I want to convert strings like '1g' or '100k' or '15.3m' to integers. I suspect this is floating around some library in maven central, but I'm not quite sure where to look first.
To be clearer, I am concerned with dimensionless numbers, or, if you prefer, disk space / file size units. Think -Xmx to the java command.
JScience might be what you're looking for.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With