|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#4
|
||||
|
||||
|
lol
easy way i've found to truncate numbers in C++ like you do in PBASIC. declare a 'double' (probably works with 'float' too) variable which takes in the number, then just declare an 'int' variable, whcih then assumes the value of the double. like this... Code:
double x; int y; x = 5.9; y = x; cout << y; |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Wheres the list, whats the secret? | archiver | 2001 | 3 | 24-06-2002 01:31 |
| Full list of teams & competitions | archiver | 2001 | 14 | 24-06-2002 00:52 |
| does anyone know where to obtain a regional team list | archiver | 2001 | 1 | 24-06-2002 00:44 |
| Team list & Events | archiver | 2000 | 2 | 23-06-2002 22:39 |
| Suggested list of things to bring to the regionals | Andrew Wyatt | Technical Discussion | 1 | 06-03-2002 14:41 |