Módulo em JS
2010-01-14 22:52:59
2009-03-22 17:08:20
Autor: Sony Santos
https://gigawiki.com/sony/modulo-em-js
Permalink: https://gigawiki.com/318
área = matemática, ti; categ = js, links
http://www.glazman.org/weblog/dotclear/index.php?post/2005/03/23/958-modulo-in-js

Contém coisas interessantes, como a diferença entre módulo e resto da divisão.

-2%12 gives -2 and not 10

a mod b := ((a % b) + b) % b
blog comments powered by Disqus
Login:
Senha:
Para logar, você precisa ter o Javascript habilitado.