1function formatTaka(n) {2 return '৳' + n.toLocaleString('en-IN');3}Reaches for the built-in en-IN locale — one line, done.
Products
Moyna Chat Image Generation Image Editor Moyna Code Deep Research ProjectsExplore
Models Pricing Why Moyna FAQAccount
Log in Start freeOne real Bangladeshi bug, handed to every coding model in Moyna Code. Below is the actual fix each one wrote — side by side. Not who's best, but how differently each hand thinks.
1function formatTaka(n) {2 return '৳' + n.toLocaleString('en-US');3}
Should group taka the South-Asian way — ৳12,34,567 — but it groups the Western way: ৳1,234,567.
Six models, one bug. Four reach for the built-in en-IN locale; two build the grouping by hand.
1function formatTaka(n) {2 return '৳' + n.toLocaleString('en-IN');3}Reaches for the built-in en-IN locale — one line, done.
1function formatTaka(n) {2 const numStr = n.toString();3 let lastThree = numStr.slice(-3);4 let remaining = numStr.slice(0, -3);5 6 if (remaining) {7 remaining = remaining.replace(/\B(?=(\d{2})+(?!\d))/g, ',');8 return '৳' + remaining + ',' + lastThree;9 }10 return '৳' + lastThree;11}Builds the lakh–crore grouping by hand with a regex.
1function formatTaka(n) {2 return '৳' + Number(n).toLocaleString('en-IN');3}Same idea, hardened with a Number() coercion.
1function formatTaka(n) {2 const num = typeof n === 'number' ? n : Number(n);3 if (!Number.isFinite(num)) return '৳0';4 5 const sign = num < 0 ? '-' : '';6 const [intPart, decPart] = Math.abs(num).toString().split('.');7 8 if (intPart.length <= 3) {9 return `৳${sign}${intPart}${decPart ? '.' + decPart : ''}`;10 }11 12 const last3 = intPart.slice(-3);13 const rest = intPart.slice(0, -3);14 const groupedRest = rest.replace(/\B(?=(\d{2})+(?!\d))/g, ',');15 16 return `৳${sign}${groupedRest},${last3}${decPart ? '.' + decPart : ''}`;17}The most careful — guards NaN, sign and decimals.
1function formatTaka(n) {2 return '৳' + n.toLocaleString('en-IN');3}Fast and direct — the built-in, nothing extra.
1function formatTaka(n) {2 return '৳' + n.toLocaleString('en-IN');3}The lightweight coder lands the same clean one-liner.
// scroll right — every column is a real capture
Two families, from lightweight to deep-reasoning — every coding model in Moyna Code, in one place.
// Claude Opus 4.6 was busy at capture time — it sits on the bench, ready when you are
Every fix above is correct. What separates them is judgment — and that's exactly what you get to see before you trust one.
Four models trust the language's en-IN locale in one line; two write the lakh–crore grouping themselves with a regex.
GPT-5.3 Codex guards against NaN, negatives and decimals; the one-liners lean on the locale to get it right.
Same correct result, very different weight — the shortest fix and the most thorough one sit side by side.
Every model on the bench runs through the very same Moyna Code workspace — the workflow never changes, only the hand does.
Claude Opus, Sonnet, Haiku and the GPT-5 Codex family — all in one workspace, switchable mid-task.
This arena is the point — read how each model actually writes, then pick the hand you believe.
Report the bug in everyday Bangla and get the explanation back in Bangla too — code stays universal.
Nothing lands silently — each model's change comes as a diff you approve, never a black box.
Describe your bug in Bangla or English — pick a model, or let Moyna Smart choose for you.
free to start · Bangla or English