ikrum/potaka

Modulus division (%) return float but cant get only round number

Closed this issue · 4 comments

দেখাও(১২৩.৪%১০ );
=>৩.৪০০০০০০০০০০০০০৫৭
দেখাও(১২.৩৪%১০ );
=>২.৩৪

But Need Result AS

দেখাও(১২৩.৪%১০ );
=>৩
দেখাও(১২.৩৪%১০ );
=>২

ikrum commented

Thanks for your feedback. We will add parseInt() method

On Aug 21, 2016 1:25 PM, "Hashibul Hasan" notifications@github.com wrote:

দেখাও(১২৩.৪%১০ );
=>৩.৪০০০০০০০০০০০০০৫৭
দেখাও(১২.৩৪%১০ );
=>২.৩৪

But Need Result AS

দেখাও(১২৩.৪%১০ );
=>৩
দেখাও(১২.৩৪%১০ );
=>২


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#3, or mute the thread
https://github.com/notifications/unsubscribe-auth/AHfwBSdG_vjW5DP04csmWWBEeRLne0hOks5qh_12gaJpZM4JpPmv
.

Good feedback Thanks @githubhasib

I think "Math.floor()" / "Math.round()" function would better works in that case. @ikrum
Thank You

ikrum commented

Thanks for rising the issue. It's solved. use _পূর্ণসংখ্যা() to get round number.