OMNeT++/OMNEST Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001038OMNeT++simulation kernelpublic2018-05-15 13:292018-05-15 13:29
Reporterlevy 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusnewResolutionopen 
PlatformOSOS Version
Product Version5.3 
Target VersionFixed in Version 
Summary0001038: SimTime::operator/ may lose precision unnecessarily
DescriptionThe SimTime::operator/ often converts the simulation time to double and calculate with the double instead. This often leads to unnecessary precision loss in the result. In such cases, the calculation could be done without precision loss (e.g. 12 / SimTime(0.3) -> exact 40, or SimTime(0.00012) / SimTime(0.0003) -> exact 4)

Maybe the best would be to introduce a new division operation into SimTime and use that where precision loss is unacceptable (e.g. Ieee80211ModeSet). It would give a hint for the future maintainers not to "fix the code".
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2018-05-15 13:29 levy New Issue


Copyright © 2000 - 2018 MantisBT Team
Powered by Mantis Bugtracker