Use esprintf, not sprintf, in case result does not fit in int.
Attach a file by drag & drop or click to upload