ToPrecision will format a number till provided length. In the below example it will return 33 because we provided 2 in toPrecision.
ToPrecision