#1088 EcmaScript number to string conversion wrong
> What steps will reproduce the problem? Build run_as2 and run_as3 projects. In FlashPlayerTest.java enable testAs2 and testAs3 methods. Fix them. The conversion is in EcmaFloatingDecimal.java, this is a modified version of the Java's FloatingDecimal class. > What is the expected output? What do you see instead? expected: test success > What version of the product are you using? Is it "nightly build"? Which operating system do you have? 7.0.1 > Please provide any additional information below. If the problem is related to a SWF file, attach it here, otherwise we can't help you. Hint: testAs2 runs quite fast, some seconds only, but for testAs3 i recommend you to set the starting value if variable "i" to 162. Only i=162 (multiply instruction) and i=163 (divide instruction) fails.
how is the result calculated from p1,p2, r3 ? Flash result (22 Divide p1:'4294967295' p2:-16777216 r3:mystring): Result:number-0.00390625000090949 Type:string FFDec result: Result:number-0.0039062500009095 Type:string
p2 / p1 r3 is not used, it is needed only for StringExtract and MBStringExtract (it need a string, start index and count)
Push p2 Push p1 Operation PushDuplicate TypeOf StackSwap StringAdd so: Push -16777216 Push "4294967295" Divide PushDuplicate TypeOf StackSwap StringAdd