View Issue Details

IDProjectCategoryView StatusLast Update
0004172Slicer4Module OpenIGTLinkIFpublic2016-04-15 15:57
Reporterleochan2009 Assigned Totokuda  
PrioritynormalSeverityminorReproducibilityalways
Status assignedResolutionopen 
PlatformMacOSCaptianOS Version10.11.4
Product Version 
Target VersionFixed in Version 
Summary0004172: nanosecond to fraction conversion not consistent
Description

conversion of nanosecond to fraction backwards and forwards produce not the same results.
assume we have a time of nanosecond: 287445234.
when the value is converted using igtl_nanosec_to_frac(), the Fraction is: 1234567903
And then we convert the fraction back to nanosecond using function igtl_frac_to_nanosec()
the return time is : 287445233. The difference is always with a few nanosecond

Steps To Reproduce

tm_forward = 999999990;
tm_return = igtl_nanosec_to_frac(tm_forward);
tm_nanoSecond = igtl_frac_to_nanosec(tm_return);
std::cerr<<" nanosecond: "<<tm_forward<<" return fraction: "<<tm_return<<" nanosecond: "<<tm_nanoSecond<<std::endl;

TagsNo tags attached.

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2016-04-15 15:57 leochan2009 New Issue
2016-04-15 15:57 leochan2009 Status new => assigned
2016-04-15 15:57 leochan2009 Assigned To => tokuda