readableBytes

Just a readableBytes function

Algorithmia Platform License

Run an Example

{
  "bytes": 10000,
  "decimals": 2,
  "formattedBytes": 9.77,
  "formattedSize": "KB",
  "result": "9.77 KB"
}

Install & Use

Use

curl -X POST -d '{
  "bytes": 10000,
  "decimals": 2
}' -H 'Content-Type: application/json' -H 'Authorization: Simple YOUR_API_KEY' https://api.algorithmia.com/v1/algo/l2aelba/readableBytes/0.1.5