Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * Copyright (c) 2012 [iPs]TeaM
- * Bruno da Silva (contato@brunodasilva.com)
- * Função length number em meu pastebin
- * www.brunodasilva.com
- * www.ips-team.forumeiros.com
- */
- function getDigit(n, p) {
- return p == lengthNumber(n) ? (((n / (Math.pow(10, p))) % 10) >> 0) - 1 : (((n / (Math.pow(10, p))) % 10) >> 0);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement