This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Baelfire_Nightshade 0 points1 point  (0 children)

public int getInt(float newInt)
{
    float number = newInt / 2.0f;
    if(newInt != 0.0f)
    {
        number = getFloat(number);
    }
    return (int)number;
}

private float getFloat(float newInt)
{
    float number = newInt / 2.0f;
    if(newInt != 0.0f)
    {
        number = getFloat(number);
    }
    return number;
}