abs-round.js (166B)
1export default function absRound(number) { 2 if (number < 0) { 3 return Math.round(-1 * number) * -1; 4 } else { 5 return Math.round(number); 6 } 7}
cscg24-guacamoleCSCG 2024 Challenge 'Guacamole Mashup' | |
git clone https://git.sinitax.com/sinitax/cscg24-guacamole | |
Log | Files | Refs | sfeed.txt |