Questions tagged [integer]
The integer tag has no usage guidance.
3 questions
0
votes
1
answer
101
views
Generate random numbers in the smart contract
I am writing smart contract and stucked on this line :
int p = 0;
p = (rand() % 997);
This is giving error
error: use of undeclared identifier 'rand'
I do search and got some reference links but ...
4
votes
1
answer
354
views
How do I use big ints in eos?
Is there a library that will let me store big ints and then perform arithmetic on them in eos smart contracts? I was trying to use the multiprecision library in boost but kept on getting an error: ...
1
vote
1
answer
66
views
variables which type is account_name is shown as integer since Dawn4.1, while it is string in Dawn4.0
Also if my action have an account_name param, it will ask for an integer too.
Is it right?
The following is what I post in telegram channel.
Hi guys, my table's account field is shown/passed as an ...