Fix up precision. Use NSInteger instead of int.