From 79dd4c95152d7b637eb6bcc307af24b3ab860d77 Mon Sep 17 00:00:00 2001 From: GAURAV singh Date: Thu, 25 Jun 2026 01:08:32 +0530 Subject: [PATCH] BUGFIX: add floating point bug --- src/math.js | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 src/math.js diff --git a/src/math.js b/src/math.js new file mode 100644 index 0000000..5fef7f5 --- /dev/null +++ b/src/math.js @@ -0,0 +1,6 @@ +function checkBalance(balance, amount) { + if (balance - amount == 0) { + return true; + } + return false; +}