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 ratecalculations. I realized from my experience, and the current thread below,that there is probably a more complete set of math functions lurking inWebcat's code.As someone on the list said recently, they are helpful in programming. Anychance we could encourage those math functions lurking in the background tocome 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 Proutyrhp@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 ratecalculations. I realized from my experience, and the current thread below,that there is probably a more complete set of math functions lurking inWebcat's code.As someone on the list said recently, they are helpful in programming. Anychance we could encourage those math functions lurking in the background tocome 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 Proutyrhp@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:
Document Contains No Data! (1997)
Dealing with da back button (1999)
no global [username] or [password] displayed ... (1997)
[SearchString] problem with [search] context (1997)
WebCat2b13 Mac plugin - [sendmail] and checkboxes (1997)
Mac app. that converts e-mails (2000)
Checking two required fields (1998)
(1997)
WebCat2.0 acgi vs plugin (1997)
Secure server question (1997)
HELP WITH DATES (1997)
WebCat2 several catalogs? (1997)
Can't use old cart file (was One more try) (1997)
Resume Catalog ? (1997)
Hello??? (1997)
Seed encrypt/decrypt code error or bug? (1999)
shipcost (1997)
Likelihood of a duplicate (2005)
transferring values (1998)
Problems with [Applescript] (1997)