![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
31/03/2010, 11:22
|
![Avatar de okhosting](http://static.forosdelweb.com/customavatars/avatar336081_1.gif) | | | Fecha de Ingreso: diciembre-2009 Ubicación: México
Mensajes: 66
Antigüedad: 15 años, 1 mes Puntos: 0 | |
Respuesta: redondear numero en c# System.Math.Ceiling(Math.Round(3D / 2D))
Round es para redondear, ese te devielve 1.5. Luego llamas a Ceiling para que te devuelva el siguiente entero hacia arriba, lo que te devuelve 2
Suerte!
okhosting.com |