Anonymous | Login | 2024-12-03 18:39 CET |
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 12:00 | 2012-06-10 18: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 | round.png [^] (25,263 bytes) 2011-09-14 12:00
| ||||||||
Notes | |
(0001199) tk (reporter) 2011-10-08 11: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 18: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 12:00 | JotEmI | New Issue | |
2011-09-14 12:00 | JotEmI | File Added: round.png | |
2011-10-02 05:05 | Fryer | Assigned To | => Fryer |
2011-10-02 05:05 | Fryer | Status | new => confirmed |
2011-10-08 11:51 | tk | Note Added: 0001199 | |
2012-02-03 16:05 | Shoozza | Assigned To | Fryer => |
2012-02-29 20:12 | Falcon | Assigned To | => Falcon |
2012-02-29 20:12 | Falcon | Status | confirmed => assigned |
2012-05-24 20:50 | Falcon | Assigned To | Falcon => |
2012-05-24 20:50 | Falcon | Status | assigned => confirmed |
2012-05-24 20:50 | Falcon | Relationship added | related to 0000083 |
2012-06-10 18:21 | Falcon | Note Added: 0001551 | |
2012-06-10 18:21 | Falcon | Status | confirmed => closed |
2012-06-10 18:21 | Falcon | Assigned To | => Falcon |
2012-06-10 18:21 | Falcon | Resolution | open => fixed |
2012-06-10 18:21 | Falcon | Fixed in Version | => 2.7.4 |
Copyright © 2000 - 2024 MantisBT Team |