uint32.html 573 B

12345678910111213141516171819
  1. <html>
  2. <body>
  3. <div>
  4. <div id='data'></div>
  5. </div>
  6. <script type="text/javascript" src="../build/uint32.lmd.js"></script>
  7. <script type="text/javascript">
  8. var v1 = UINT32('326648991')
  9. var v2 = UINT32('265443576')
  10. var v1plus2 = v1.clone().add(v2)
  11. document.getElementById('data').innerHTML += '<p>' + v1 + ' + ' + v2 + ' = ' + v1plus2 + '</p>'
  12. var v1 = UINT32('3266489917')
  13. var v2 = UINT32('668265263')
  14. var v1div2 = v1.clone().div(v2)
  15. document.getElementById('data').innerHTML += '<p>' + v1 + ' / ' + v2 + ' = ' + v1div2 + '</p>'
  16. </script>
  17. </body>
  18. </html>