Jump to content

How to force a negitive variable to 0


Shadowing

Recommended Posts

Sorry, cannot help you without knowing all the conditions and context of what you are doing.

 

You must have some kind of logic to test the value and produce/return the zero value for negative numbers. Even using a built-in or user written function would require the use of a statement.

 

Now, if you will care to fully explain what it is you are trying to do and in what context, I'm sure someone can probably help you.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.