|
|
|
|
 |

July 14th, 2004, 06:13 PM
|
 |
General
|
|
Join Date: Apr 2001
Location: Cincinnati, Ohio, USA
Posts: 4,547
Thanks: 1
Thanked 7 Times in 5 Posts
|
|
Re: SE4 Templatizer Ready for Download!
Negating a number means turning 5 into -5, or -3 into 3, or whatever - basically subtracting it from zero.
__________________
The Ed draws near! What dost thou deaux?
|

July 14th, 2004, 09:14 PM
|
 |
Shrapnel Fanatic
|
|
Join Date: Mar 2003
Location: CHEESE!
Posts: 10,009
Thanks: 0
Thanked 7 Times in 1 Post
|
|
Re: SE4 Templatizer Ready for Download!
Negate: 1. To render ineffective or void; nullify. 2. To deny; contradict; rule out.
Well, I suppose it fits under contradict. 
__________________
If I only could remember half the things I'd forgot, that would be a lot of stuff, I think - I don't know; I forgot!
A* E* Se! Gd! $-- C-^- Ai** M-- S? Ss---- RA Pw? Fq Bb++@ Tcp? L++++
Some of my webcomics. I've got 400+ webcomics at Last count, some dead.
Sig updated to remove non-working links.
|

July 14th, 2004, 10:03 PM
|
 |
Shrapnel Fanatic
|
|
Join Date: Jul 2001
Location: Southern CA, USA
Posts: 18,394
Thanks: 0
Thanked 12 Times in 10 Posts
|
|
Re: SE4 Templatizer Ready for Download!
The negative of a number nullifies it. To negate a number, to nullify it. The null number is 0.
[ July 14, 2004, 21:05: Message edited by: Imperator Fyron ]
|

July 15th, 2004, 01:51 AM
|
 |
Shrapnel Fanatic
|
|
Join Date: Mar 2003
Location: CHEESE!
Posts: 10,009
Thanks: 0
Thanked 7 Times in 1 Post
|
|
Re: SE4 Templatizer Ready for Download!
True, but the described operation is 0 - n, where n is the number. The operation you describe is n + (0 - n).
__________________
If I only could remember half the things I'd forgot, that would be a lot of stuff, I think - I don't know; I forgot!
A* E* Se! Gd! $-- C-^- Ai** M-- S? Ss---- RA Pw? Fq Bb++@ Tcp? L++++
Some of my webcomics. I've got 400+ webcomics at Last count, some dead.
Sig updated to remove non-working links.
|

July 15th, 2004, 02:18 AM
|
 |
Lieutenant General
|
|
Join Date: Nov 2002
Posts: 2,903
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
Re: SE4 Templatizer Ready for Download!
This works too. How about the operation -1*n where n is the number
|

July 17th, 2004, 02:25 AM
|
 |
General
|
|
Join Date: Apr 2001
Location: Cincinnati, Ohio, USA
Posts: 4,547
Thanks: 1
Thanked 7 Times in 5 Posts
|
|
Re: SE4 Templatizer Ready for Download!
Time for a progress report!
The calculator part of the application is coming along great; currently, it can negate, add, subtract, multiply, divide, exponentiate, and take modulos, exponents, percentages, and factorials!
What's left to do:
-Add in variables
-Add in mathematical functions (sin, log, sqrt, and stuff like that)
-Add in user defined functions (if I can - Fyron wants 'em and it shouldn't be TOO hard, just string replacement  )
-Add in functions that return strings, not just numbers (if I can - would be useful for generating Roman numerals for components)
-Finally, write the application that parses the SE4 data file templates and generates the actual data files! 
__________________
The Ed draws near! What dost thou deaux?
|

July 19th, 2004, 03:30 AM
|
 |
General
|
|
Join Date: Apr 2001
Location: Cincinnati, Ohio, USA
Posts: 4,547
Thanks: 1
Thanked 7 Times in 5 Posts
|
|
Re: SE4 Templatizer Ready for Download!
Oops, forgot to mention that I needed to add parentheses... Well, I just finished adding those!
BTW, will anyone be needing functions that take multiple parameters? I could easily implement single-parameter functions as unary operators and not write proper functions, and that would save me a bit of time with the parsing of parameters, but if you really want them... 
__________________
The Ed draws near! What dost thou deaux?
|
| Thread Tools |
|
|
| Display Modes |
Hybrid Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is On
|
|
|
|
|