From 348c5008edaf6a60f7ba2d89dce665684096c9da Mon Sep 17 00:00:00 2001 From: m0_75226990 Date: Sat, 21 Oct 2023 16:50:27 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4number=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- uni_modules/uts-tests/utssdk/Number.uts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/uni_modules/uts-tests/utssdk/Number.uts b/uni_modules/uts-tests/utssdk/Number.uts index a487b75..ca405a9 100644 --- a/uni_modules/uts-tests/utssdk/Number.uts +++ b/uni_modules/uts-tests/utssdk/Number.uts @@ -22,12 +22,13 @@ export function testNumber(): Result { console.log(JSON.stringify(obj)) + + // #ifndef APP-IOS + // android 专有数据类型 expect(123456.789.toFixed(2)).toEqual("123456.79"); expect(12345600123.789123.toFixed(2)).toEqual("12345600123.79"); expect((-123456.789).toFixed(5)).toEqual("-123456.78900"); expect(parseFloat("16688995566.369").toFixed(3)).toEqual("16688995566.369"); - // #ifndef APP-IOS - // android 专有数据类型 let a1 = 56 let a2 = -122 expect(a1.toByte().toFixed(2)).toEqual("56.00"); -- GitLab