Implemented Math::BigFloat and set the for loop iteration to 1000. I got this.

1.61803398874989134108149616839120102549529239736894442545810864027200 +4672370011 5821867348448257489376743928929399432794736492740848900619637044468374 +2207769895 5284871351149952419914396715116304293153432202518784423148528900571338 +6036307288 2666653413158187588889523960353654538133067018527952357922321879257356 +7283883127 7094213145824463279151550928901338078022671782538720109128857973217206 +4435763570 4834109645509800631132924524020295001913106367168146749062307167701770 +4214956950 4993984233902344817301165562098038711338438280454536671077633488806776 +2538380409 4923932589997007833231933734402447427253643144652108581074116780141710 +8024560671 5128413634249080667591897167775382994790390597191607264786128916197903 +0377805716 0904108406395045059538778428623236698441468433287357807746043807953509 +2604173695 2869797766388741261679692402860638102715386529683999970737044861693007 +8122405879 3542093499009637260570055508183563356247329736259263178694538356045137 +3449390853 2681011158895040808014625634585023423690443466557686937200000000000000 +0000000000

In reply to Re: phi div by 0 error by perlaintdead
in thread phi div by 0 error by perlaintdead

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.