Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Rounding

Name: Anonymous 2012-01-09 9:26

What programming language has the best, cleanest and most beautiful rounding function?

Name: Anonymous 2012-01-09 9:33

Visual Basic: banker's rounding is the only kind of rounding available.

Name: Anonymous 2012-01-09 10:15

this threads lack ALGORITHMS

Name: Anonymous 2012-01-09 16:00

gggg

Name: JACKSON FIVE GET 2012-01-09 16:35

JACKSON FIVE GET

Name: Anonymous 2012-01-09 17:39

javascript

Name: Anonymous 2012-01-09 18:08

round the tip of my bigass dick

Name: Anonymous 2012-01-09 18:45


#include <stdio.h>
int main() {
    float num = 5.5;
    printf((int) num);
    return 0;
}

THE MOST BEAUTIFULEST ROUNDING ALGORSegmentation fault

Name: Anonymous 2012-01-09 20:33

>>8
Sometimes I wonder what people who mock C are really trying to say.

Name: Anonymous 2012-01-09 20:52

>>8
That is not how printf works ``faggot''

Name: Anonymous 2012-01-09 21:02

>>8
No, go fuck yourself.
delan@pluto ~ $ cc -xc -Wall -Werror -Wextra -pedantic -pedantic-errors -ansi -
#include <stdio.h>
int main() {
    float num = 5.5;
    printf((int) num);
    return 0;
}
<stdin>: In function 'main':
<stdin>:4:5: error: passing argument 1 of 'printf' makes pointer from integer without a cast
/usr/include/stdio.h:359:12: note: expected 'const char * __restrict__' but argument is of type 'int'
cc1: warnings being treated as errors
<stdin>:4:5: error: format not a string literal and no format arguments

Name: Anonymous 2012-01-09 21:26

>>8'
>tries to make fun of C
>can't even write valid C code
>can't even use standard print functions

Name: Anonymous 2012-01-09 21:32

Pascal:

Ceil - round towards +inf
Floor - round towards -inf
Round - round towards nearest integer, 0.5 rounds up
Trunc - return integer quotient of real number. discard fractional amount

Name: Anonymous 2012-01-09 22:14

>>12
Back to the imageboards.

Name: Anonymous 2012-01-09 22:41

Name: Anonymous 2012-01-09 22:51

>>14
You're missing the point.

Name: Anonymous 2012-01-09 23:38

JavaScript, surprising.

Don't change these.
Name: Email:
Entire Thread Thread List