| Anonymous | Login | 2025-11-04 06:08 UTC | ![]() |
| Main | My View | View Issues | Change Log | Roadmap | My Account |
| View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | ||||
| 0000015 | Soldat Dedicated Server | Scripting Core | public | 2011-09-14 10:00 | 2012-06-10 16:21 | ||||
| Reporter | JotEmI | ||||||||
| Assigned To | Falcon | ||||||||
| Priority | normal | Severity | minor | Reproducibility | always | ||||
| Status | closed | Resolution | fixed | ||||||
| Platform | x86 | OS | Windows | OS Version | XP SP3 | ||||
| Product Version | 2.7.0 | ||||||||
| Target Version | Fixed in Version | 2.7.4 | |||||||
| Summary | 0000015: RoundTo() doesn't remove trailing zeros. | ||||||||
| Description | As you can see on attached screen RoundTo() doesn't remove trailing zeros. As far as I know it only happens on dedicated server running on Windows. On Linux trailing zeros are removed. | ||||||||
| Tags | No tags attached. | ||||||||
| John | |||||||||
| Attached Files | |||||||||
Notes |
|
|
(0001199) tk (reporter) 2011-10-08 09:51 |
It's obviously not RoundTo() which does it's job and zerofies specified decimal places. It's FloatToStr() which displays decimal places despite the fact that they are 0. Example: WriteLn(FloatToStr(1.0)) will display 1.0000000000000 |
|
(0001551) Falcon (administrator) 2012-06-10 16:21 |
As because trailing zeros are result of compiler change, I've added FormatFloat() function that can be used to display floats incely. Full description here: http://www.freepascal.org/docs-html/rtl/sysutils/formatfloat.html [^] |
Issue History |
|||
| Date Modified | Username | Field | Change |
| 2011-09-14 10:00 | JotEmI | New Issue | |
| 2011-09-14 10:00 | JotEmI | File Added: round.png | |
| 2011-10-02 03:05 | Fryer | Assigned To | => Fryer |
| 2011-10-02 03:05 | Fryer | Status | new => confirmed |
| 2011-10-08 09:51 | tk | Note Added: 0001199 | |
| 2012-02-03 15:05 | Shoozza | Assigned To | Fryer => |
| 2012-02-29 19:12 | Falcon | Assigned To | => Falcon |
| 2012-02-29 19:12 | Falcon | Status | confirmed => assigned |
| 2012-05-24 18:50 | Falcon | Assigned To | Falcon => |
| 2012-05-24 18:50 | Falcon | Status | assigned => confirmed |
| 2012-05-24 18:50 | Falcon | Relationship added | related to 0000083 |
| 2012-06-10 16:21 | Falcon | Note Added: 0001551 | |
| 2012-06-10 16:21 | Falcon | Status | confirmed => closed |
| 2012-06-10 16:21 | Falcon | Assigned To | => Falcon |
| 2012-06-10 16:21 | Falcon | Resolution | open => fixed |
| 2012-06-10 16:21 | Falcon | Fixed in Version | => 2.7.4 |
| Copyright © 2000 - 2025 MantisBT Team |