Zero after decimal while creating SHA-256 hash

I was creating SHA-256 hash, is it necessary to write zero after decimal. when I create hash with not mentioning zeros after decimal like (only 11), it works but if I create hash with mentioning zeros after a integer like “11.00”, it’s not working resulting signature invalid.

Image case 1(not working with hash signature with zero as decimals)


image case 2( working with hash signature created of only integer (not zeros after decimals)

Hi @anishkandel100

I’m not that knowledgeable about cryptography but I would guess this is due to the number being a floating point.

There can be discrepancies with rounding and this could be what is causing your hash to fail.

There is a good write-up here that might help explain;