Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Q1584 How can I find the remainder or the quotient in a division?

irt.org | Knowledge Base | JavaScript | Number | Q1584 [ previous next ]

Q1584 How can I find the remainder or the quotient in a division?

Try:

<script language="JavaScript"><!--
var a = 3;
var b = 2;
var remainder = a%b;
var quotient = parseInt(a/b);
//--></script>

Feedback on 'Q1584 How can I find the remainder or the quotient in a division?'


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.