Wanted to ask if it is possible to hold and compute negative values, integer in Solidity? E.g -1, -200, -33.56 and so on.

Thanks for the response soon.

Wanted to ask if it is possible to hold and compute negative values, integer in Solidity? E.g -1, -200, -33.56 and so on.

Thanks for the response soon.

You can use int for negative integers but not float numbers

1 Like