Jump to content

Search the Community

Showing results for tags 'notation'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • OSBot
    • News & Announcements
    • Community Discussion
    • Bot Manager
    • Support Section
    • Mirror Client VIP
    • Script Factory
  • Scripts
    • Official OSBot Scripts
    • Script Factory
    • Unofficial Scripts & Applications
    • Script Requests
  • Market
    • OSBot Official Voucher Shop
    • Currency
    • Accounts
    • Services
    • Other & Membership Codes
    • Disputes
  • Graphics
    • Graphics
  • Archive

Product Groups

  • Premium Scripts
    • Combat & Slayer
    • Money Making
    • Minigames
    • Others
    • Plugins
    • Agility
    • Mining & Smithing
    • Woodcutting & Firemaking
    • Fishing & Cooking
    • Fletching & Crafting
    • Farming & Herblore
    • Magic & Prayer
    • Hunter
    • Thieving
    • Construction
    • Runecrafting
  • Donations
  • OSBot Membership
  • Backup

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


MSN


Website URL


ICQ


Yahoo


Skype


Location:


Interests

Found 1 result

  1. For the project I'm working on I am trying to display the GP on page of a mule but I can't get it to correctly show the notation. :x $holdingAmount = $Mulesrow['holdingamount']; if($holdingAmount >= 1000){ $holdingLength = strlen($holdingAmount); $strArg = 1; for($i = 0; $i < $holdingLength; $i++){ $strArg = $strArg * 10; } if ($holdingAmount >= 1000000) { $holdingAmount = floor(($holdingAmount / 1000000) * $strArg ) / $strArg . "M"; } else if ($holdingAmount >= 1000) { $holdingAmount = floor(($holdingAmount / 1000) * 100) / 100 . "K"; } } I need it to show the correct amount depending on the annotation. So if I for example have 21119999 it should show 21.11M instead of 21.12M. This should be done so depending on the length.
×
×
  • Create New...