How to do division?

(3rd edit) Thank you been trying some new things and got it fully working but the only thing Im struggling to figure out is conversion. I would like to convert Score,Score2, and TotalScore back to a int after the calculations to send ints in the SetTriggerText instead of floats.

    OnInitial(QAgent:?agent):void=
        if (Agent:=QAgent?):
            ScoreManager1.Activate(Agent)
            Score := ScoreManager1.GetCurrentScore(Agent) * 1.0
            ScoreManager2.Activate(Agent)
            Score2 := ScoreManager2.GetCurrentScore(Agent) * 1.0

            TotalScore := Score + Score2

            if(PercentScore := Round[(Score/TotalScore)*100]):
                SetTriggerText(Score, Score2, TotalScore, PercentScore)
            else:
                Err("Failed to calculate percent score") # Stop verse from running to find error in code

    SetTriggerText(value:float, value2:float, total:float, Percent:int):void=
        
        ScoreText.SetText(ScoreMessage("{value}"))
        ScoreText2.SetText(ScoreMessage("{value2}"))
        ScoreText3.SetText(ScoreMessage("{total}"))
        ScoreText4.SetText(ScoreMessage("{Percent}"))