From 38947e00c0323493bc21665de6c4373f690b2258 Mon Sep 17 00:00:00 2001 From: Ishaan Bhardwaj <59454579+SashLilac@users.noreply.github.com> Date: Mon, 8 Feb 2021 10:34:47 -0500 Subject: [PATCH] Added a tostring function for bigints --- libs/bigint/bigint.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libs/bigint/bigint.lua b/libs/bigint/bigint.lua index 675aebd..07c1e65 100644 --- a/libs/bigint/bigint.lua +++ b/libs/bigint/bigint.lua @@ -63,6 +63,9 @@ function bigint.new(num) end, __le = function(lhs, rhs) return bigint.compare(lhs, rhs, "<=") + end, + __tostring = function() + return bigint.unserialize(self, "s") end })