C Library Functions - meters_to_feet (3)
NAME
meters_to_feet(3f) - [M_units:LENGTH] converts a measurement in meters to feet
(LICENSE:PD)
CONTENTS
Synopsis
Description
Options
Example
Author
License
SYNOPSIS
elemental real function meters_to_feet(meters)
class(*),intent(in) :: meters
DESCRIPTION
Converts feet to meters using the formula:
feet= meters/12.0/0.0254
OPTIONS
|
feet |
any standard scalar value supported by anyscalar_to_real(3f).
This at least includes REAL, INTEGER, and DOUBLEPRECISION.
|
|
EXAMPLE
Sample program
program demo_meters_to_feet
use M_units, only : meters_to_feet
implicit none
write(*,*)With REAL array input , meters_to_feet([ -1.0, 0.0, 1.0 ])
write(*,*)With INTEGER array input , meters_to_feet([ -1, 0, 1 ])
write(*,*)With DOUBLEPRECISION , meters_to_feet(-1.0d0),meters_to_feet(0.0d0),meters_to_feet(1.0d0)
end program demo_meters_to_feet
Results
With REAL array input -3.28083992 0.00000000 3.28083992
With INTEGER array input -3.28083992 0.00000000 3.28083992
With DOUBLEPRECISION -3.28083992 0.00000000 3.28083992
AUTHOR
John S. Urban
LICENSE
Public Domain
| Nemo Release 3.1 | meters_to_feet (3) | June 29, 2025 |
Generated by manServer 1.08 from ec3c5593-cafb-4656-814b-134d0963355e using man macros.