Post has been Discarded

Dividing by Zero: A Number Called Nullity

NordlichReitersays...


class Program
{
&nbsp private static float zero = 0;
&nbsp private static float one = 1;
&nbsp /********************
&nbsp * What is a float that would cause this to be possible
&nbsp * in an application?
&nbsp * IEEE standard has values for +infinity, and -Infinity,
&nbsp * there fore with the video above it is possible to define
&nbsp * an answer to the division by zero. By using
&nbsp * float values.
&nbsp ********************/
&nbsp static void Main(string[] args)
&nbsp {
&nbsp&nbsp //Displays the value of float zero
&nbsp&nbsp Console.WriteLine(zero.ToString());
&nbsp&nbsp //Prints the quotent which is infinity
&nbsp&nbsp Console.WriteLine((one / zero).ToString());
&nbsp }

Send this Article to a Friend



Separate multiple emails with a comma (,); limit 5 recipients






Your email has been sent successfully!

Manage this Video in Your Playlists




notify when someone comments
X

This website uses cookies.

This website uses cookies to improve user experience. By using this website you consent to all cookies in accordance with our Privacy Policy.

I agree
  
Learn More