Skip to content

Instantly share code, notes, and snippets.

@jasongorman
Created March 31, 2019 08:01
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/bcd9649ee38eef5d0bee597391434f7c to your computer and use it in GitHub Desktop.
Save jasongorman/bcd9649ee38eef5d0bee597391434f7c to your computer and use it in GitHub Desktop.
program CarpetQuoteTest
implicit none
real quote
real price
real room(2)
room(1) = 2.5
room(2) = 2.5
price = quote(room, 10.0, .FALSE.)
print*, "Quote (not rounded) = ", price
price = quote(room, 10.0, .TRUE.)
print*, "Quote (rounded) = ", price
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment