PDA

Click to See Complete Forum and Search --> : What is this character?


dbasnett
Mar 2nd, 2009, 08:55 AM
i was testing my string calculator and found this
3 + 4 * 2 / ( 1 − 5 ) ^ 2 ^ 3
here - http://en.wikipedia.org/wiki/Shunting_yard_algorithm

the formula failed in the calculator and it was because of this − , which is not this - character. what is it?


Dim d As Double = 3 + 4 * 2 / ( 1 − 5 ) ^ 2 ^ 3 'bad
Dim d As Double = 3 + 4 * 2 / (1 - 5) ^ 2 ^ 3 'good

dilettante
Mar 2nd, 2009, 09:00 AM
See Dash (http://en.wikipedia.org/wiki/Dash).

dbasnett
Mar 2nd, 2009, 09:39 AM
ok, that helped, but the unicode character decimal value is 8722, which i didn't see listed.

edit - is it the minus sign?

dilettante
Mar 2nd, 2009, 05:56 PM
Looks like it is, character U+2212 (minus sign (http://en.wikipedia.org/wiki/Minus_sign#Minus_sign)) has the decimal value 8722.