From b296875c05822adaa6e03b3b0f9d4800960c77ac Mon Sep 17 00:00:00 2001 From: Christoffer Lerno Date: Fri, 28 Nov 2025 23:20:40 +0100 Subject: [PATCH] Fix BigInt --- lib/std/math/bigint.c3 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/std/math/bigint.c3 b/lib/std/math/bigint.c3 index dedf58cde..ddd736841 100644 --- a/lib/std/math/bigint.c3 +++ b/lib/std/math/bigint.c3 @@ -506,6 +506,11 @@ fn BigInt BigInt.abs(&self) return self.is_negative() ? self.unary_minus() : *self; } +fn String BigInt.to_string(&self, Allocator allocator) @dynamic +{ + return self.to_string_with_radix(10, allocator); +} + fn usz? BigInt.to_format(&self, Formatter* format) @dynamic { if (self.is_zero())