Ghi chú phát hành được viết bằng tiếng Anh.
Numbers convert to other bases the way the standard describes
Number handling brought closer to the standard. Turning a number into text in a base other than ten, like hexadecimal or binary, now works whether you start from a plain number or a wrapped one, and asking for a base outside the allowed range reports a clear error instead of quietly giving the wrong answer. Reading the underlying value back out of a wrapped number or true-or-false value now gives the exact value the standard specifies. Code that was already correct is unchanged. The JavaScript language aspect moves 97 to 98; the overall platform score stays at 70.
Những gì đã thay đổi
3 thay đổi- Hiển thịConverting a number to another base works from a wrapped value too. Turning a number into text in hexadecimal, binary, or any base from two to thirty-six now produces the right result whether the value is a plain number or a wrapped one, where a wrapped number previously ignored the requested base.
- API web và DOMAn out-of-range base reports a clear error. Asking to convert a number using a base below two or above thirty-six now reports a clear error the moment it happens, as the standard requires, instead of silently falling back to base ten and returning a misleading result.
- Hiển thịReading a wrapped value back out is exact. Getting the underlying value from a wrapped number or a wrapped true-or-false value now returns exactly that value, so equality and arithmetic on it behave as expected.
































