Jump to content
php.lv forumi

Matemātisks ifs


goma smile

Recommended Posts

Iedomājieties ir Daudzums un minimums kam jābūt, ka caur if'u var pārbaudīt vai starpība starp daudzumu un minimumu ir mazaka/lielāka par  10%

 

kkā šādi

 

if(($value->count - $value->minimum) <= 10%) vai kā kur loģika pašreiz man tās galvā nav

Edited by goma smile
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...