Templot Club Archive 2007-2020                             

topic: 3689Invalid Floating Point
author remove search highlighting
 
posted: 3 Jun 2020 20:49

from:

Julian Roberts
 
 

click the date to link to this post
click member name to view archived images
view images in gallery view images as slides
Hello Martin
I got this message this afternoon when creating a 3 way turnout.  i was off-line but had used the PC in  a separate session this morning on-line.

I assumed it was something I was doing wrong in positioning the turnout, but couldn't get rid of teh message wherever I placed the turnout (within the few inches of space there is in the plan).  However a friend tells me it is a fault and that I should report it.  

I assume my Templot version is the latest as it updates each time I go onto it (I think).  It says 2.26.b

Attach file just in case useful.  3 way was the one on extreme left of layout plan



Cheers
Julian
Attachment: attach_3080_3689_Kyle_2020_3_June1855_50.mecbox     81
Last edited on 3 Jun 2020 20:50 by Julian Roberts
posted: 4 Jun 2020 07:31

from:

Julian Roberts
 
 

click the date to link to this post
click member name to view archived images
view images in gallery view images as slides
This morning Templot has sent an update, it is now 2.26.c

Whether that is related to my message yesterday evening or not, thank you.

Cheers
Julian
Last edited on 4 Jun 2020 07:58 by Julian Roberts
posted: 4 Jun 2020 12:33

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 Julian,

Thanks for reporting this bug.

It's not related to the new version 226c, everyone got that today (released 7pm yesterday).

Had you reported the bug a couple of hours earlier I would have delayed the release in order to fix the bug first.

That has happened several times in the past -- someone finds a bug which has existed for 20 years and reports it within minutes of a new update being released. I think it's called Sod's Law. :)

There is a significant bug in the make tandem function which no-one else has found in the 2+ years that function has been available. Many thanks for finding it and reporting it.

It happens when the starting turnout for a single-sided tandem has a turnout radius larger than the "natural" radius for the V-crossing angle. That usually means having a curviform or generic V-crossing with an angle flatter than the "natural" angle for the switch. In your case a B-switch with 1:8.5 angle (the natural crossing angle for a B-switch is 1:8).

For the middle V-crossing in a single-sided tandem, Templot uses a modified half-diamond template.  In trying to make it fit in this case, the K-crossing angle has gone through the roof, resulting in the maths error (floating-point) which you found. Sorry about that.

You said that is the only starting turnout which fits, which makes it difficult to suggest a workaround. If you could allow it to be a fraction longer, by changing the B-switch to a 12ft straight switch, you will find that it works ok. It might also be possible to get a fix by changing the created second turnout before completing the tandem.

I will post a recipe for a suggested fix shortly.

In any event, I suspect that straight switches would be more likely at Kyle than the REA switches.

cheers,

Martin.

posted: 4 Jun 2020 15:31

from:

Julian Roberts
 
 

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

The 3 way and the double slip below it are not part of the Kyle track plan. The scenic part of the layout ends at 12 inches on the grid. To the left of 12 inches, on the lower running line (the Down Line) there has to be a turnout that is the other half of the single slip crossover (which is to the right of 12 inches on the upper running line, actually the Up Line). I am experimenting to see how much extra space it takes to that used by the turnout to start a fan out to a fiddleyard. Making the turnout into a double slip is one part of the experiment. Then I was dabbling to see whether a 3 way could fit above it in the same space on the Up running line.

So it's perfectly possible to change it. My ruling radius is 48" and I was seeing what was possible. In any event I'm still at the doodling stage regarding the fiddleyards. I was going to make a 4 road FY with an ordinary turnout on the Up line, then I thought, perhaps a 3 way would fit and give me 5 roads.

posted: 4 Jun 2020 15:37

from:

Julian Roberts
 
 

click the date to link to this post
click member name to view archived images
view images in gallery view images as slides
3591_041036_200000000.png3591_041036_200000000.png

posted: 4 Jun 2020 15:40

from:

Julian Roberts
 
 

click the date to link to this post
click member name to view archived images
view images in gallery view images as slides
The modelled area is to the right of the bridge which forms a natural end to the scenic part of the layout.

posted: 11 Jun 2020 13: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 Julian,

The floating-point bug is now fixed in Templot version 226d.

Your copy of Templot should update automatically if you restart it and follow the instructions.

Thanks again for reporting it.

It took some finding -- in the end it wasn't in the tandem function, it was in the code which compiles the data for the information panel. It was also very strange because the data was entirely valid, and the same code does not create an exception in T3 (compiled in Lazarus). Which means the bug is probably in the Delphi compiler. Whatever, I have now escaped around it.

cheers,

Martin.

posted: 11 Jun 2020 15:07

from:

Julian Roberts
 
 

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

Great. In my language that means the Delphic oracle has spoken, and Lazarus can rise again!

Seriously - no less than the designer of the trackwork of Burntisland advised me to report it. He has kindly designed my 3 way anew. I would have otherwise regarded it as just part of my beginners' bafflement. I may post more questions on that forum as I won't know if it's me or the system that's the problem!

Cheers
Julian



Templot Club > Forums > I found a flaw > Invalid Floating Point
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