Advertisement
danzylrabago

OverflowException

Mar 31st, 2020
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. using System;
  2.  
  3. class Program{
  4.  
  5. public static void Main(){
  6.  
  7. double num = 0;
  8. try{
  9. num = Convert.ToDouble("8888555563476356356735467536745367457634736783687346873246872364872364876485465635765376453467563478423648764876875346875634876348765873465873465873465873465555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555673456735673576357634576345673457634763476567345763456735673456734547634576345673456734576345763457653467534765763454673455555555555555555555555555555555555555555555555555555555555555555555555555555577777747783737653487657834657846587468576348756347865555555551234567890");
  10. }
  11. catch (OverflowException){
  12. Console.WriteLine("We encountered an OverflowException");
  13. }
  14. Console.WriteLine(num);
  15. }
  16.  
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement