Restored from previous forum. Originally posted by Cantor.
Hi!
Normally (in other BASIC languages) "Val(A8)" results "8", but PureBasic doesn't filter the letters and results "178". Is it a bug or a feature?
Best regards,
Martin.
--
Best regards,
Martin
Val
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Mr.Skunk.
Hello
Has said in the PB Doc :
"TRANSFORM a string into a numeric value. The string must be an integer in decimal format."
I think you're right Cantor, it's not a bug, it looks like a not well named function (as VAL usually filter and not transform the string)...
Mr Skunk
Mr Skunk's PureBasic Web Page
http://www.skunknet.fr.st
Hello
Has said in the PB Doc :
"TRANSFORM a string into a numeric value. The string must be an integer in decimal format."
I think you're right Cantor, it's not a bug, it looks like a not well named function (as VAL usually filter and not transform the string)...
Mr Skunk
Mr Skunk's PureBasic Web Page
http://www.skunknet.fr.st