Forum Moderators: open

Message Too Old, No Replies

Question on Math operators and Netscape 6.1

         

damovand

2:53 pm on Apr 7, 2003 (gmt 0)

10+ Year Member



Hello,

Can someone please tell me what math operators Netscape supports? I wrote a script that counts the length of a line and breaks every fifty characters. I’m using % operator in my script which works with IE 6 but does not seem to work with Netscape. This operator is also known as mod and it returns the remainder of a division. I probably have to write two different versions of this script, but I don't mind as long as I know what to use for mod function with Netscape.

Thanks a lot.

bcolflesh

3:03 pm on Apr 7, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Possibly helpful newsgroup discussion here:

How does % operator deal with negative numbers? [groups.google.com]

Regards,
Brent

tedster

5:20 pm on Apr 7, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Netscape 6.1 uses Javascript 1.5. Here is the Netscape reference for Javascript 1.5 [devedge.netscape.com]. Each category (such as Math) is presented as a link that takes you to a healthy page of details.

If you are concerned with other browser versions, and what level of script they support, you may also find this earlier WebmasterWorld thread helpful:
Javascript/Jscript/ECMAScript version history [webmasterworld.com]

And here's another reference for supporting older versions -- all three versions of the script (Netscape, MS, ECMA) are represented here, from 1.4 on back:
Index of javascript reference manuals prior to 1.5 [tech.irt.org]