Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. deadpainter

    Number formatting

    After discovering (being shown) the whole float/int issue, I did indeed end up casting the the number as cyan01 showed. $temp = int($myNum / 10); Thanks again folks.
  2. deadpainter

    Number formatting

    I used rharsh's code initially, and it worked beautifully. However, I ended up using mikevh's idea for the simplicity, not that any were complicated. I feel slightly ashamed with the fact I didn't realize I was using a float rather than an int. It didn't even cross my mind to change it! Not too...
  3. deadpainter

    Number formatting

    Thanks for the tips, I will try them tonight. Much appreciated.
  4. deadpainter

    Number formatting

    Honestly, it's been a few years since I've used Perl, and it was never something I used on a regular basis. This is probably a simple question, although I am having issues finding an answer. I have the following calculation: $temp = $myNum / 10; $newNum = sprintf("%.0f\n",$temp); The issue is...

Part and Inventory Search

Back
Top