I have a set of numbers, [tex]n_{1}[/tex] through [tex]n_{z}[/tex]. Some of these n values are positive integers and some are positive rational non-integers.(adsbygoogle = window.adsbygoogle || []).push({});

How can I determine how many are positive integers?

In other words, I have a set of numbers. There are z numbers in this set. I don't need to know which are zeros, which are positive integers, and which are neither... But I need to know HOW MANY positive integers there are.

Perhaps some function that would make the value of any positive integer 1, and the value of any other real number 0? Has that been done?

Thank you ^^.

Note: I don't know anything about formal set theory, so don't take my use of the word "set" to imply that my problem involves that at all. Thanks.

**Physics Forums | Science Articles, Homework Help, Discussion**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# I have a set of numbers

**Physics Forums | Science Articles, Homework Help, Discussion**