Skip to Main Content
C# in a Nutshell
book

C# in a Nutshell

by Ben Albahari, Ted Neward, Peter Drayton
March 2002
Intermediate to advanced content levelIntermediate to advanced
864 pages
31h 8m
English
O'Reilly Media, Inc.
Content preview from C# in a Nutshell

Name

Math

Synopsis

This class provides static helper functions for many trigonometric, logarithmic, and other mathematical operations, including methods for rounding numbers, getting absolute values, retrieving the largest whole divisor (Floor()), and determining the remainder (IEEERemainder()). The constants pi and e are provided as fields.

public sealed class Math {
// Public Static Fields
   public const field double E;                                  // =2.71828182845905
   public const field double PI;                                 // =3.14159265358979
                  // Public Static Methods
   public static method decimal Abs(decimal value);  
   public static method double Abs(double value);  
   public static method short Abs(short value);  
   public static method int Abs(int value);  
   public static method long Abs(long value);  
   public static method sbyte Abs(sbyte value);  
   public static method float Abs(float value);  
   public static method double Acos(double d);  
   public static method double Asin(double d);  
   public static method double Atan(double d);  
   public static method double Atan2(double y, double x);  
   public static method double Ceiling(double a);  
   public static method double Cos(double d);  
   public static method double Cosh(double value);  
   public static method double Exp(double d);  
   public static method double Floor(double d);  
   public static method double IEEERemainder(double x, 
        double y);  
   public static method double Log(double d);  
   public static method double Log(double a, double newBase);  
   public static method double Log10(double d);  
   public static method byte Max(byte val1, byte ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

C# 8.0 in a Nutshell

C# 8.0 in a Nutshell

Joseph Albahari, Eric Johannsen
C# 10 in a Nutshell

C# 10 in a Nutshell

Joseph Albahari
C# in a Nutshell, Second Edition

C# in a Nutshell, Second Edition

Peter Drayton, Ben Albahari, Ted Neward
Code like a Pro in C#

Code like a Pro in C#

Jort Rodenburg

Publisher Resources

ISBN: 0596001819Catalog PageErrata