Re: [PATCH 1/2]vbscript: Implemented builtin function CInt(try 2)

2013-04-21 Thread Zhan Jianyu
point number cannot require more precision than the original > value. > > So I think you've essentially just rewritten modf. My understanding is > that floating point equality comparisons are exact, except in weird > cases like NaN. Oh, thanks for your tips, I will look at it. -- Regards, Zhan Jianyu

Re: [PATCH 1/2]vbscript: Implemented builtin function CInt(try 2)

2013-04-20 Thread Zhan Jianyu
And equaty comparison could not avoid incurring inaccuracy, which is not what I want .Dealing with the bit pattern may looks odd, but it is correct. -- Regards, Zhan Jianyu Sent from cell phone. 在 2013-4-21 上午1:30,"Vincent Povirk" 写道: > Dealing with the bits of a floating point nu

Re: [PATCH 3/3]vbscript: Implemented builtin function CBool

2013-04-18 Thread Zhan Jianyu
comparision, to avoid comparision in every Case. > Are you sure you want to return string type here? I'd expect a bool value > (of type VT_BOOL) here... > > } Oh, I'm misguided by the doc I referred to ... I will fix this. -- Regards, Zhan Jianyu