Subj : Re: float value to jsval To : Jun Kim From : Brendan Eich Date : Mon Jan 31 2005 05:41 pm Jun Kim wrote: > Brendan Eich wrote in news:41FA6819.9070501@meer.net: > > >>Jun Kim wrote: >> >>>Can I use DOUBLE_TO_JSVAL on float value? >> >> >>Obviously not. >> >> >> >>>I seem to get wrong value... >> >> >>Is that surprising? The name means what you thought -- double, not >>float (and a pointer to a GC-allocated double, to boot). >> >>/be > > > Umm.. then how can I translate float value to jsval? Widen the float to a double? > There's no FLAOT_TO_JSVAL... Yeah, we've been over that already :-/. /be .