Nov 17

Truncate Decimal to Two Places Function (twoDec)

Truncates a decimal to two places. Rounds down.

function twoDec(thisValue)
	if isnumeric(thisValue) then
		twoDec = int(thisValue*100) / 100
	else
		twoDec = thisValue
	end if
end function

Permanent link to this article: https://www.wperry.net/code/twodec/

Leave a Reply

Your email address will not be published.