Templot Club Archive 2007-2020                             

topic: 1860Less than or equal too?
author remove search highlighting
 
posted: 4 Mar 2012 18:37

from:

julia
 
 

click the date to link to this post
click member name to view archived images
view images in gallery view images as slides
I am not sure if this really counts as a bug or just me being pedantic.

If I select 700mm as the radius to "warn if under", then make a turnout with 700mm radius, it flashes up red and complains. Surely this should only happen if I go down to 699mm? Is it "less than"? or "Less than or equal to"?

J

posted: 4 Mar 2012 19:05

from:

Martin Wynne
 
West Of The Severn - United Kingdom

click the date to link to this post
click member name to view archived images
view images in gallery view images as slides
julia wrote:
If I select 700mm as the radius to "warn if under", then make a turnout with 700mm radius, it flashes up red and complains.
Hi Julia,

It's "less than". The reason you are seeing it red is due to rounding effects -- your actual radius is below the limit by a small fraction of a mm, but it is rounded to the nearest mm for the display.

If you go to geometry > radius and curving... menu item and set exactly 700mm, you will see that it goes green. :)

regards,

Martin.

posted: 4 Mar 2012 19:08

from:

julia
 
 

click the date to link to this post
click member name to view archived images
view images in gallery view images as slides
Groovy, a floating point error was the other possibility.

Thanks

J

posted: 4 Mar 2012 20:26

from:

Martin Wynne
 
West Of The Severn - United Kingdom

click the date to link to this post
click member name to view archived images
view images in gallery view images as slides
Hi Julia,

I have changed the code so that the smallest radius must be below the limit by more than 0.5mm to trigger the red warning.

This will prevent the display anomaly which you noticed.

In the next TDV update.

It's strange that something can remain unnoticed and unchanged for over 12 years and still need some further work. :)

Thanks for reporting it.

regards,

Martin.



Templot Club > Forums > Development doings - archive > Less than or equal too?
about Templot Club

Templot Companion - User Guide - A-Z Index Templot Explained for beginners Please click: important information for new members and first-time visitors.
indexing link for search engines

back to top of page


Please read this important note about copyright: Unless stated otherwise, all the files submitted to this web site are copyright and the property of the respective contributor. You are welcome to use them for your own personal non-commercial purposes, and in your messages on this web site. If you want to publish any of this material elsewhere or use it commercially, you must first obtain the owner's permission to do so.
The small print: All material submitted to this web site is the responsibility of the respective contributor. By submitting material to this web site you acknowledge that you accept full responsibility for the material submitted. The owner of this web site is not responsible for any content displayed here other than his own contributions. The owner of this web site may edit, modify or remove any content at any time without giving notice or reason. Problems with this web site? Contact webmaster@templot.com.   This web site uses cookies: click for information.  
© 2020  

Powered by UltraBB - © 2009 Data 1 Systems