logo elektroda
logo elektroda
X
logo elektroda
REKLAMA
REKLAMA
Adblock/uBlockOrigin/AdGuard mogą powodować znikanie niektórych postów z powodu nowej reguły.

Ustawianie minimalnej wartości zmiennej w Bascom przy użyciu formuły

DJ_DOGGY 05 Mar 2018 09:52 510 0
REKLAMA
  • #1 17081035
    DJ_DOGGY
    Poziom 10  
    Hello to all Bascom experts.

    My question is: Can i put limit range to a variable if i have a formula that calculates this variable. The idea is the following:
    This formula can make values with result, that i don`t want to use and i want to eliminate/ignore. Let`s say i want to use everything above value of 1... and to eliminate values from 1 down to 0
    I other words to have a minimum (at least) limit. Values <1 to be ignored

    Example: calculation gives me result of 0 - i want this value not to be consudered and to be ignored
    The lower value to be considered as "good" to be 1.00
    May be there is a way in the DIM command to "tell" the compiler that this variable cannot be 0 ? I know it`s strange but that is why i ask, if there is a way to do it.
  • REKLAMA
REKLAMA