We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Something along the lines of:
function uintToString(uint v) constant returns (string str) { uint maxlength = 100; bytes memory reversed = new bytes(maxlength); uint i = 0; while (v != 0) { uint remainder = v % 10; v = v / 10; reversed[i++] = byte(48 + remainder); } bytes memory s = new bytes(i); for (uint j = 0; j < i; j++) { s[j] = reversed[i - 1 - j]; } str = string(s); }
Source: https://ethereum.stackexchange.com/questions/10811/solidity-concatenate-uint-into-a-string
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Something along the lines of:
Source: https://ethereum.stackexchange.com/questions/10811/solidity-concatenate-uint-into-a-string
The text was updated successfully, but these errors were encountered: