VOOZH about

URL: https://www.geeksforgeeks.org/c-sharp/single-isnegative-method-in-c-sharp-with-examples/

⇱ Single.IsNegative() Method in C# with Examples - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Single.IsNegative() Method in C# with Examples

Last Updated : 11 Jul, 2025
Single.IsNegative(Single) Method is used to return a value indicating whether the specified number evaluates to negative or not.
Syntax: public static bool IsNegative (float f); Return Value: This method returns the true if f evaluates to Negative otherwise it returns false.
Below programs illustrate the use of Single.IsNegative() Method: Example 1:
Output:
1011.562 is not Negative
Example 2:
Comment
Article Tags:

Explore