Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * Copyright (c) 2012 [iPs]TeaM
- * Bruno da Silva (brunoemail@r7.com)
- * Função básica para retornar a posição de números impares de uma sequencia impar
- Ex :
- f(3) = 1
- f(1) = 0
- f(7) = 4
- * www.brunodasilva.com
- * www.ips-team.forumeiros.com
- */
- function getImparPosition(impar) {
- return impar % 2 ? impar >> 1 : -1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement