To convert feet to metres in C#, you can use the following formula:
main.cs31 chars2 lines
where feet
is the length in feet that you want to convert and metres
is the equivalent length in metres.
Here's an example method that takes a length in feet and returns the equivalent length in metres:
main.cs112 chars6 lines
You can call this method with a value in feet to get the equivalent value in metres, like this:
main.cs124 chars4 lines
This would output:
main.cs24 chars2 lines
gistlibby LogSnag