Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@jasongorman
Last active March 31, 2019 07:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasongorman/c94fce22cfa7c10d6b7d628f01e138a3 to your computer and use it in GitHub Desktop.
Save jasongorman/c94fce22cfa7c10d6b7d628f01e138a3 to your computer and use it in GitHub Desktop.
real function quote(width, length, pricePerSqMtr, roundUp)
real width, length, pricePerSqMtr
logical roundUp
real area
area = width * length
if (roundUp) then
area = ceil(area)
endif
quote = area * pricePerSqMtr
return
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment