Hi,
Look at this simple widget

Code:
function tObject (fld){this.fld = fld;}

var ObjBad = new tObject(1.2);

var ObjOK = new tObject("1.2");

function init() {

alert("Constant initialization. The field value=" + ObjBad.fld +" (expected value = 1.2)."); 

alert("String initialization.The field value=" + ObjOK.fld +" (expected value = 1.2)."); 
}
The field value of ObjBad is 1 instead of 1.2!

ObjOK has an expected value of 1.2.

Do not use floating constants in object contractors. Use string constants instead.

Tested on Nokia E66.
Be carefully.