Subj : Re: Arithmetic Precision Question. To : netscape.public.mozilla.jseng From : Martin Honnen Date : Wed Jul 20 2005 03:02 pm chris.omland@gmail.com wrote: > I read in the > newsgroup archives that Rhino will convert to a double when performing > arithmetic, is there a way to configure the context or the Rhino engine > to return an int if it is only given int or will it always return a > double? I am using version 1.5.4. JavaScript only has one number type and that implements IEEE double precision floating point numbers. So there is no int or integer type, you will have to round and/or format a number for output if you want to look at the integer part only. -- Martin Honnen http://JavaScript.FAQTs.com/ .