primo
26-09-2019, 09:48
i have copied a formula in line 20 in https://www.purplemath.com/modules/sqrcircle.htm
let us say it is 5–2 , pasting it in thinbasic IDE and also in Freebasic ide , they outputs an error. i first suspect there is a hidden characters, i copied the formula to the notepad saving it to ansi then copied it again, the same error.
what is wrong with this minus sign !!. then finding that its asc = 8211 while the normal minus asc = 45. so this is the problem. i find also another symbol with asc = 8722
the real minus sign appears shorter than this symbol
in fact i always not happy with the usual minus sign , and who have poor eyes vision like me see it like a dot, they should make it taller by one or two pixels
compare here the 2 symbols: (the taller is the fake minus):
4x2 + 4y2 – - 16x – - 24y + 51 = 0
this code will output error in line 10
'---Load Console Module
Uses "Console"
Long a
a = 5-2
printl a
printl asc("-") '45
printl asc("–") '8211
printl asc("−")'8722
a = 5–2 ' will output error
PrintL "Press a key to end program"
'---Wait for a key press
WaitKey
more about math symbols:
https://www.rapidtables.com/math/symbols/Basic_Math_Symbols.html
let us say it is 5–2 , pasting it in thinbasic IDE and also in Freebasic ide , they outputs an error. i first suspect there is a hidden characters, i copied the formula to the notepad saving it to ansi then copied it again, the same error.
what is wrong with this minus sign !!. then finding that its asc = 8211 while the normal minus asc = 45. so this is the problem. i find also another symbol with asc = 8722
the real minus sign appears shorter than this symbol
in fact i always not happy with the usual minus sign , and who have poor eyes vision like me see it like a dot, they should make it taller by one or two pixels
compare here the 2 symbols: (the taller is the fake minus):
4x2 + 4y2 – - 16x – - 24y + 51 = 0
this code will output error in line 10
'---Load Console Module
Uses "Console"
Long a
a = 5-2
printl a
printl asc("-") '45
printl asc("–") '8211
printl asc("−")'8722
a = 5–2 ' will output error
PrintL "Press a key to end program"
'---Wait for a key press
WaitKey
more about math symbols:
https://www.rapidtables.com/math/symbols/Basic_Math_Symbols.html