Advertisement
cornedor

Untitled

Jun 6th, 2013
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [22:42:59.877] " === Math session with JS === "
  2. [22:42:59.877] " Welcome to this math session with JS"
  3. [22:42:59.877] " Today we are going to calculate a stretcher or what the english"
  4. [22:42:59.877] " Word is for that. So first we want to know how much 1mm is on"
  5. [22:42:59.877] " the display. The render is 347px height and the choosen"
  6. [22:42:59.877] " size is 300mm height. That means that for each pixel there"
  7. [22:42:59.877] " are 347 / 300 = 1.1566666666666667mm. If we use this"
  8. [22:42:59.877] " given number we can calculate how much pixels 20mm (the stretcher)"
  9. [22:42:59.877] " We do this by calculating 20 / 1.1566666666666667 = 17.291066282420747"
  10. [22:42:59.877] ""
  11. [22:42:59.877] " Now we have the answere we need. Have a nice day and keep calculating."
  12. [22:42:59.877] ""
  13. [22:42:59.877] ""
  14. [22:42:59.877] " - JS"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement