diff --git a/client/src/components/exercise/lab14/components/Decryption.js b/client/src/components/exercise/lab14/components/Decryption.js index e0d6ddf89..27d3da39c 100644 --- a/client/src/components/exercise/lab14/components/Decryption.js +++ b/client/src/components/exercise/lab14/components/Decryption.js @@ -53,7 +53,7 @@ const Decryption = ({ }; const formatNumber = (num) => { - if (Math.abs(num) >= 1e6) { + if (Math.abs(num) >= 1e12) { return num.toExponential(2); } return num.toLocaleString(); diff --git a/client/src/components/exercise/lab14/pages/RSADecryption.js b/client/src/components/exercise/lab14/pages/RSADecryption.js index 38b37c16f..f8aae2a47 100644 --- a/client/src/components/exercise/lab14/pages/RSADecryption.js +++ b/client/src/components/exercise/lab14/pages/RSADecryption.js @@ -28,7 +28,7 @@ const RSADecryption = () => { }; const formatNumber = (num) => { - if (Math.abs(num) >= 1e6) { + if (Math.abs(num) >= 1e12) { return num.toExponential(2); } return num.toLocaleString();