Author |
Message |
Topic: Math functions for large and floating point numbers |
Driver256
Replies: 16
Views: 65089
|
Forum: Finished MUD Scripts Posted: Mon Jul 27, 2009 7:37 pm Subject: Math functions for large and floating point numbers |
I thought it was if @test < 0 was "Yes it is" then it would do the Yay...
Well, that's right.
If "@test < 0" was true then it would do the yay. But, of course, it's not true.
@test ... |
Topic: Math functions for large and floating point numbers |
Driver256
Replies: 16
Views: 65089
|
Forum: Finished MUD Scripts Posted: Mon Jul 27, 2009 7:03 pm Subject: Math functions for large and floating point numbers |
I'm not sure what the confusion is. Your code is working fine...
#var test 14235468435
#if (%mss(islessthan(@test,0))) {#echo YAY} {#Echo BOO}
BOO
This is correct. @test is not less t ... |
Topic: Math functions for large and floating point numbers |
Driver256
Replies: 16
Views: 65089
|
Forum: Finished MUD Scripts Posted: Wed Jul 15, 2009 6:20 am Subject: Math functions for large and floating point numbers |
Hi.
I haven't tinkered with ZMud for a few years now, but I'll try to give you an answer. :) Keep in mind that I don't know what version of ZMud you are using, and you may very well have a newer ve ... |
Topic: Formatting big numbers in ZMud using VBScript |
Driver256
Replies: 0
Views: 9361
|
Forum: Finished MUD Scripts Posted: Fri Oct 28, 2005 5:42 pm Subject: Formatting big numbers in ZMud using VBScript |
There are many posts in these forums asking about formatting numbers. That is, adding commas to make them display friendly. The consensus seems to be to use %format, which works pretty well for small ... |
Topic: Math functions for large and floating point numbers |
Driver256
Replies: 16
Views: 65089
|
Forum: Finished MUD Scripts Posted: Fri Oct 28, 2005 5:25 pm Subject: More large math functions |
The functions above seem to do the trick pretty well. The thing is, those big numbers are stored by ZMud as strings. So you cannot perform any comparisons or functions on them in ZScript with consiste ... |
Topic: Math functions for large and floating point numbers |
Driver256
Replies: 16
Views: 65089
|
Forum: Finished MUD Scripts Posted: Thu Oct 27, 2005 9:26 pm Subject: Math functions for large and floating point numbers |
From the help file for the #script command:
SCRIPT
Syntax: #SCR
So, to list your scripts, type '#script'.
Thanks for the feedback. :)
Driver256 (Berndt) |
Topic: Math functions for large and floating point numbers |
Driver256
Replies: 16
Views: 65089
|
Forum: Finished MUD Scripts Posted: Thu Oct 27, 2005 12:12 pm Subject: Math functions for large and floating point numbers |
After much searching of these wonderful forums, and several hours of finding and reading VBScript docs, I believe that I have found a simple way to overcome the limitations of ZMud when it comes to do ... |
Topic: Wish-list for zMUDXP |
Driver256
Replies: 248
Views: 448395
|
Forum: zMUD General Discussion Posted: Thu Oct 27, 2005 8:03 am Subject: Wish-list for zMUDXP |
I am very interested in ZmudXP.
Wishlist:
- accurate floating point math
- numbers > 32 bits (long doubles would be nice)
- proper SQL database engine and interface
- all the little quirk ... |
|