Assuming that the three variables are a, b and c you could simply do the
following:
float minimumValue = Math.Min( Math.Min( a, b ), c );
Its not horribly inefficient. Probably doing the comparisons yourself would
be a bit faster -- maybe.
-ben
"Sona" <so**********@nospam.com> wrote in message
news:3f********@clarion.carno.net.au...
I need to find a minimum of three float values.. what would be the most
efficient way of doing this? Can someone please share some code with me
for doing this? Thanks
Sona