floor function

Discussion in 'Fallout General Modding' started by Nirran, Sep 17, 2018.

  1. Nirran

    Nirran Vault Senior Citizen
    Modder

    Apr 15, 2007
    is this accurate?in regards to a bug posted in another thread im wondering if is a more accurate function,like trunc maybe?
     
  2. NovaRain

    NovaRain Casual Modder Modder

    Mar 10, 2007
    That's why we added a "floor2".
     
    Last edited: Sep 18, 2018
  3. Nirran

    Nirran Vault Senior Citizen
    Modder

    Apr 15, 2007
    nice,tyvm

    edit : tried it,it still reports 1 xp point under what is actually gained
     
    Last edited: Sep 17, 2018
  4. Nirran

    Nirran Vault Senior Citizen
    Modder

    Apr 15, 2007
    tried floor2(var) and compiler spouts not known,tried sfall_func1("floor2", var) and same behavior as floor(var),modders pack installed

    Nirran

    edit : issue solved by adding .00001 to the number to be floored(Credit to Novarain)
     
    Last edited: Sep 18, 2018