Re: % (mod) was Re: looping table rows

This WebDNA talk-list message is from

1999


It keeps the original formatting.
numero = 23796
interpreted = N
texte = Dear PCS,I the past I asked about a function that raises something to the power of, as in:6^10 or 6 to the power of 10.This function was not in the Webcat docs.The above function is very helpful when programming complex interest rate calculations. I realized from my experience, and the current thread below, that there is probably a more complete set of math functions lurking in Webcat's code.As someone on the list said recently, they are helpful in programming. Any chance we could encourage those math functions lurking in the background to come forth? So far we have: ^ raises to the power of, 6^10 or 6 to the power of 10 % converts the decimal remainder from division into an integer (?)RH Prouty rhp@BristolCapital.com---------->Oh, that's right, it's not in the docs.... I came across it by accident >(someone who knew knew some C language mentioned it). >Basically, its the remainder in a division problem. So: > >4%6=2 (4 divided by 6 equals 1 remainer 2) >100%10=0 >13%12=1 >19%20=19 > >That's the best I can explain it. Associated Messages, from the most recent to the oldest:

    
Dear PCS,I the past I asked about a function that raises something to the power of, as in:6^10 or 6 to the power of 10.This function was not in the Webcat docs.The above function is very helpful when programming complex interest rate calculations. I realized from my experience, and the current thread below, that there is probably a more complete set of math functions lurking in Webcat's code.As someone on the list said recently, they are helpful in programming. Any chance we could encourage those math functions lurking in the background to come forth? So far we have: ^ raises to the power of, 6^10 or 6 to the power of 10 % converts the decimal remainder from division into an integer (?)RH Prouty rhp@BristolCapital.com---------->Oh, that's right, it's not in the docs.... I came across it by accident >(someone who knew knew some C language mentioned it). >Basically, its the remainder in a division problem. So: > >4%6=2 (4 divided by 6 equals 1 remainer 2) >100%10=0 >13%12=1 >19%20=19 > >That's the best I can explain it. RH Prouty

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

MacActivity and PCS (1997) Help! WebCat2 bug (1997) Removing [showif] makes a big difference in speed (1997) Unexpected error (1997) WebCat2 - [include] tags (1997) Performance Issue (2000) Nav. 4 probs with cart - Serious problem (1997) problems with 2 tags shakur (1997) International Orders (1998) Using WebCat for product info requests (1997) Trouble with carts (2000) unsubscribe (1997) Date format question (1998) File Uploads... (1997) Separate SSL Server (1997) [WebDNA] Hacked account recovered (2010) I find this type=num search strange (2003) Possible Bug in 2.0b15.acgi (1997) Year 2070 (2000) Anyone using WebMerchant in the UK (2000)