Unable to input negative value in power for an int variable in remix

blockchaingo-ethereumremixsolidityweb3js

I want to input the following values to this function

function rebase(uint256 epoch, int256 supplyDelta)
  • epoch (5 minutes later)
  • supplyDelta -0.000000000000001

I tried doing so in remix but got an error. How to resolve this issue?

errored: Error encoding arguments: Error: invalid BigNumber string
(argument="value", value="-0.000000000000001", code=INVALID_ARGUMENT,
version=bignumber/5.4.1)

Best Answer

Wierd, it seems to read your input as 1*10^-15, you sure you really typed -1*10^15? anyways if it still doesnt work after double checking i suggest inputting the full number with all the 0s written