Added invalid input
Added whole number functions