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
Blinking text(C)
image as a list item marker(CSS)
Create a new directory(VB)
radio button redirection(ASP)
read a character using cin(C++)
delete a folder(VB.net)
Get current time(Powershell)
Get the names of all processes on your machine(C Sharp)

    




Copyright © 2003 by programmershelp.co.uk