Search Unity

Duplicated explanation in documentation.

Discussion in 'Documentation' started by JoaoPaul54, Jul 10, 2014.

  1. JoaoPaul54

    JoaoPaul54

    Joined:
    Nov 20, 2013
    Posts:
    52
  2. landon912

    landon912

    Joined:
    Nov 8, 2011
    Posts:
    1,579
    Well, they do almost the exact same thing, Round() returns a rounded integer cast as a float, and RoundToInt() simply returns the rounded number as an integer. Both, return the exact same results, only in different forms. I don't see why'd it be needed to edit the summery besides making it more explicit what the return type is. However, this is not done elsewhere, so for consistency sake, I think it should be kept as is.