Skip to main content
Solved

Is there a way to round parameters of tfw file

  • February 16, 2015
  • 1 reply
  • 15 views

zzupljanin
Contributor
Forum|alt.badge.img+4
Hi,

 

 

so, is there a way to round parameters of tfw file (e.g. 6 decimal places) while writing a tiff file.

 

 

I'm having a problem since FME changes the last (10th) decimal place of tfw file. And I'm using no transformers whatsoever.

 

 

PS. The resolution of original tiff is 0.2 and the last decimal of output tiff is 4. Does this have any correlation or is it just coincidence?

Best answer by david_r

Hi,

 

 

this sounds more like the general limitation of floating point arithmetic on computers than it does a problem with FME. See here for more info: http://floating-point-gui.de/formats/fp/

 

 

If you need to round of the coordinates, try using a CoordinateRounder.

 

 

David
View original
Did this help you find an answer to your question?
This post is closed to further activity.
It may be a question with a best answer, an implemented idea, or just a post needing no comment.
If you have a follow-up or related question, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

1 reply

david_r
Celebrity
  • Best Answer
  • February 16, 2015
Hi,

 

 

this sounds more like the general limitation of floating point arithmetic on computers than it does a problem with FME. See here for more info: http://floating-point-gui.de/formats/fp/

 

 

If you need to round of the coordinates, try using a CoordinateRounder.

 

 

David

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings