RoundJSON

(no tags)

Algorithmia Platform License

Run an Example

{
  "a": 1.2344,
  "h": "abcdef",
  "g": [
    1,
    2,
    3.45555
  ],
  "cdd": {
    "cdd_2": 1.2,
    "cdd_1": 5.6788456
  }
}

Install & Use

Use

curl -X POST -d '"{\"to_round\": {\"a\": 1.2344, \"g\": [1,2, 3.45555], \"h\": \"abcdef\", \"cdd\": {\"cdd_1\": 5.6788456, \"cdd_2\": 1.2}}, \"prec\": -3}"' -H 'Content-Type: application/json' -H 'Authorization: Simple YOUR_API_KEY' https://api.algorithmia.com/v1/algo/joergr/RoundJSON/0.1.0