Output quantities in decimals?

hi there, is is possible to have an output in decimals? Like this for example..

{
      "shortname": "crude.oil",
      "amount": 0.5,
      "chance": 80.0,
      "valid": true
    },
No. How would you give half an item?
like the output amount could be a percentage..
A percentage of what?