Main Menu

HOME

.Net
ASP
Assembly
C
C++
Delphi
HTML
Java
JavaScript Site
MySQL
PC interface
Powershell
Perl
PHP
VBScript
Visual Basic
XML

US Job listings




   Misc

   Amazon

   Links

    


Ceil function example
 

 

Description

Shows an example of the ceil function which rounds up to the next highest integer

Code

#include <stdio.h>
#include <math.h>

int main()
{
printf("ceil examples\n");
printf("The value %f is %f\n", 5.1 ,ceil(5.1));
printf("The value %f is %f\n", 4.9 ,ceil(4.9));
return 0;
}

Information

tested using LCC Win 32

 

 

 

 

Download

ceil.txt


 




   Sponsors
 

   Software
500 Java Tips E-book
PHP editor
PERL editor
Beginning Java
Beginning Visual Basic
Learn VB.net
Learn VB 6
VB and databases
ASP image library
C++ builder programming
C++ fundamentals

   Source Code
hexadecimal to decimal conversion(PHP)
Shell out to browser(VB)
plasma effect(Assembly)
populate a select menu from MySQL(PHP)
display the date(PHP)
Display HKCU registry(Powershell)
Populate a combo box(ASP)
DNS information(C Sharp)

    




Copyright © 2003 by programmershelp.co.uk