Validation Rules - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30) +--- Thread: Validation Rules (/showthread.php?tid=83442) |
Validation Rules - donpwinston - 09-27-2022 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. RE: Validation Rules - kenjis - 10-04-2022 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] RE: Validation Rules - InsiteFX - 10-05-2022 Computer mathmatics are different from normal mathmatics. |