 |
Changeset 3758
- Timestamp:
- 07/18/08 21:59:36
(5 months ago)
- Author:
- kris
- Message:
fixes #1193 :: Float.truncate() exception
thanks to olaA
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r3694 |
r3758 |
|
| 393 | 393 | { |
|---|
| 394 | 394 | auto tmp = s; |
|---|
| 395 | | auto i = tmp.length; |
|---|
| 396 | | foreach (idx, c; tmp) |
|---|
| | 395 | int i = tmp.length; |
|---|
| | 396 | foreach (int idx, T c; tmp) |
|---|
| 397 | 397 | if (c is '.') |
|---|
| 398 | 398 | while (--i >= idx) |
|---|
| … | … | |
| 511 | 511 | Cout.newline; |
|---|
| 512 | 512 | |
|---|
| | 513 | Cout (truncate(format(tmp, 1.0, 6))).newline; |
|---|
| 513 | 514 | Cout (truncate(format(tmp, 30, 6))).newline; |
|---|
| 514 | 515 | Cout (truncate(format(tmp, 3.14159, 6, 0))).newline; |
|---|
Download in other formats:
|
 |
 |
|
 |
Copyright © 2006-2008 Tango. All Rights Reserved. | Page Width:
Static or
Dynamic