locutusjs / locutus

Bringing stdlibs of other programming languages to JavaScript for educational purposes

Home Page:https://locutus.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bcmul doesn't calculate the correct values

jhoff opened this issue · comments

  • Have you checked the guidelines in our Contributing document?

Description

bcmul does not calculate values correctly

PHP 7.0.13

bcmul('2.5', '2.5') // "6"
bcmul('2.5', '2.5', 2) // "6.25"

Javascript

bcmul('2.5', '2.5') // "625"
bcmul('2.5', '2.5', 2) // "625."

This issue should be fixed by #317

Merged #317! 🎉