Welcome Guest, Not a member yet? Register   Sign In
Validation Rules
#1

When I majored in math 0 was not considered a natural number. Natural numbers are 1,2,3, ... I don't believe this has changed since I was in college. CodeIgniter's built in rules have
is_natural and is_natural_non_zero.
Simpler is always better
Reply
#2

Quote:Some definitions, including the standard ISO 80000-2,[3][a] begin the natural numbers with 0, corresponding to the non-negative integers 0, 1, 2, 3, ..., whereas others start with 1, corresponding to the positive integers 1, 2, 3, ...[4][b] Texts that exclude zero from the natural numbers sometimes refer to the natural numbers together with zero as the whole numbers, while in other writings, that term is used instead for the integers (including negative integers).[5]
https://en.wikipedia.org/wiki/Natural_number
Reply
#3

Computer mathmatics are different from normal mathmatics.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply




Theme © iAndrew 2016 - Forum software by © MyBB