From 1e85a2ac4ec0ebbdd8fcf23587c10cbaba897c38 Mon Sep 17 00:00:00 2001 From: Benjamin DeMann Date: Tue, 16 Jan 2024 16:25:52 -0700 Subject: [PATCH] fix float class valueToString method --- property_tests/arbitraries/canister_arb.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/property_tests/arbitraries/canister_arb.ts b/property_tests/arbitraries/canister_arb.ts index 33b33a3800..4a438b984a 100644 --- a/property_tests/arbitraries/canister_arb.ts +++ b/property_tests/arbitraries/canister_arb.ts @@ -16,7 +16,7 @@ TextClass.prototype.valueToString = (x): string => { */ FloatClass.prototype.valueToString = (x): string => { const floatString = x.toString(); - if (floatString.includes('.')) { + if (floatString.includes('.') || floatString.includes('e')) { return floatString; } return floatString + '.0';