Tema: [ CONSULTA ] Comparar valores [números]
Ver Mensaje Individual
  #2  
Viejo 11/04/16, 21:32:24
Array

[xs_avatar]
mocelet mocelet no está en línea
Desarrollador
 
Fecha de registro: may 2011
Localización: Madrid
Mensajes: 2,203
Tu operador: -

min = Math.min(num1, num2)
max = Math.max(num1, num2)

O sin funciones...

min = num1 < num2 ? num1 : num2;
max = num1 > num2 ? num1 : num2;
__________________
El mejor Cuatro en Raya de Android (Hilo en HTCMania, Play Store) ¡Un millón de descargas!
Responder Con Cita
Los siguientes 2 usuarios han agradecido a mocelet su comentario: