DEV Community

Adam Crockett 🌀
Adam Crockett 🌀

Posted on

🚂 Model Railroad Scale Calculator Function 🚇

As I am at home a lot, Just for fun, I am starting to look at modelling a railroad / railway, cool but I don't do very often maths, so I used some code to write a function to help me out.

I have been wracking my brain about a function helps me translate real world measurements into a Guage such as HO or OO - this gauge correlates with a scale for example OO 1:76

You might find it useful 🤷‍♂️

Top comments (2)

pandademic profile image

Excuse me , your code block is empty.

adam_cyclones profile image
Adam Crockett 🌀 • Edited

Although tree there is nothing rendering, take a look at the JavaScript tab in this codesand box frame

(Swipe the left hand white line to the right first)