 |
Guinn Wizard
Joined: 03 Mar 2001 Posts: 1127 Location: London
|
Posted: Mon Nov 13, 2006 8:46 am
[1.15] Recognising integers after operations on strings |
#say (%left(5a, 1)*1)
returns 0
Because 5a is a string then %left(5a, 1) returns 5 as a string, and multiplying that by 1 will return 0... but I think CMUD should realise what I'm trying to do and return 5 |
|
_________________ CMUD Pro, Windows Vista x64
Core2 Q6600, 4GB RAM, GeForce 8800GT
Because you need it for text... ;) |
|
|
 |
Fang Xianfu GURU

Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Mon Nov 13, 2006 3:40 pm |
You can use %int to change the string to an integer.
|
|
|
 |
Zugg MASTER

Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Mon Nov 13, 2006 8:43 pm |
No, this is a bug with the auto-typing in CMUD and is on the bug list.
|
|
|
 |
|
|