Graphics

 View Only
  • 1.  Rounding off number in visual logic

    Posted 12-02-2021 16:01
    Hi I need a quick answer please! - doing visual logic need to round off a number to 1 decimal point using visual logic.
    How would that look?

    ------------------------------
    Sonja Broomfield
    ------------------------------


  • 2.  RE: Rounding off number in visual logic

    Posted 12-03-2021 04:09
    Hi Sonja
    As you have found out, there are no properties in the round function, only round to a whole number
    So here is a way to do it, multiply by 10 before using round, and then divide by 10 again, like this:

    Best regards,
    Sven

    ------------------------------
    Sven Jensen
    TV2 Lorry
    ------------------------------



  • 3.  RE: Rounding off number in visual logic

    Posted 12-03-2021 08:29
    This works perfectly too (it is what I ended up doing yesterday) but see below for perfect visual logic command.  Too bad Ross didn't build the format float into the rounding function!

    ------------------------------
    Sonja Broomfield
    ------------------------------



  • 4.  RE: Rounding off number in visual logic
    Best Answer

    Ross Staff
    Posted 12-03-2021 05:58
    Does this do what you want?
    Change the precision to "1"


    ------------------------------
    Simon Redmile
    Test Pilot | Senior Graphic Programmer & Designer
    Ross Video
    London United Kingdom
    ------------------------------



  • 5.  RE: Rounding off number in visual logic

    Posted 12-03-2021 08:25
    Yes! Brilliant, thank you!

    ------------------------------
    Sonja Broomfield
    ------------------------------