In one of my page, I compare two numbers. For an example,
12.9% with 9.8%. If 12.9% is higher than 9.8%, then 12.9% is bolded, otherwise, 9.8% is bolded. But somehow, when my program compiles, it determine that 12.9% is smaller than 9.8%. Here is my code:
coYR47J78 = FormatPercent(coYR47J78,1)
coYR35G78 = FormatPercent(coYR35G78,1)
If coYR35G78 >= coYR47J78 Then
Response.write "<td bgcolor = '#CCFFFF'> " & coYR35G78 & "<td>" & coYR47J78 & "<table>"
Else
Response.write "<td>" & coYR35G78 & "<td bgcolor = '#CCFFFF'>" & coYR47J78 & "</table>"
End If
Does ASP has some kind of clitch when comparing percentage?
Thank you!!!
12.9% with 9.8%. If 12.9% is higher than 9.8%, then 12.9% is bolded, otherwise, 9.8% is bolded. But somehow, when my program compiles, it determine that 12.9% is smaller than 9.8%. Here is my code:
coYR47J78 = FormatPercent(coYR47J78,1)
coYR35G78 = FormatPercent(coYR35G78,1)
If coYR35G78 >= coYR47J78 Then
Response.write "<td bgcolor = '#CCFFFF'> " & coYR35G78 & "<td>" & coYR47J78 & "<table>"
Else
Response.write "<td>" & coYR35G78 & "<td bgcolor = '#CCFFFF'>" & coYR47J78 & "</table>"
End If
Does ASP has some kind of clitch when comparing percentage?
Thank you!!!