Jump to content

Cascadia11

New Members
  • Posts

    2
  • Joined

  • Last visited

Cascadia11's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Sorry, I have no idea what Interactive Shell is or how to use it. Is there anything I can do to figure this out?
  2. Hi, I have a string, say for instance 0.001 I need to split this amount into two different amounts - one with 1.5% and the other with 98.5%. What I need is the returning amounts in the same format, so like this... 1.5% = 0.000015 98.5% = 0.000985 But when I do the calculation in PHP using this code. $total_amount = 0.001; $percentage = 1.5; $new_amount = ($percentage / 100) * $total_amount; I end up getting 5.0E-6 What am I doing wrong? I am honestly very bad when it comes to basic mathematics. This has been driving me insane all day. I've tried converting that produced power number into the correct format but to no success. Thank you so much for any help.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.