- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
AmitDiwan has Published 11365 Articles
AmitDiwan
215 Views
The MathF.Sign() method in C# returns an integer specifying the sign of the number.SyntaxFollowing is the syntax −public static int Sign (float val);Above, Val is the floating-point number whose sign is to be calculated.The return value is 0 if Val is zero. It’s -1 if the value is less than ... Read More
AmitDiwan
2K+ Views
The MathF.Round() method in C# is used to round a value to the nearest integer or to the particular number of fractional digits.SyntaxFollowing is the syntax −public static float Round (float x); public static float Round (float x, int digits); public static float Round (float x, int digits, MidpointRounding mode); ... Read More
AmitDiwan
46 Views
The Decimal.ToInt16() method in C# is used to convert the value of the specified Decimal to the equivalent 16-bit signed integer.SyntaxFollowing is the syntax −public static short ToInt16 (decimal val);Above, Val is the decimal number to convert.ExampleLet us now see an example to implement the Decimal.ToInt16() method −using System; public ... Read More
AmitDiwan
62 Views
The Decimal.ToDouble() method in C# is used to convert the value of the specified Decimal to the equivalent double-precision floating-point number.SyntaxFollowing is the syntax −public static double ToDouble (decimal val);Above, Val is the decimal number to convert.ExampleLet us now see an example to implement the Decimal.ToDouble() method −using System; public ... Read More
AmitDiwan
6K+ Views
The Int16.CompareTo() method in C# is used to compare this instance to a specified object or another Int16 instance and returns an integer that indicates whether the value of this instance is less than, equal to, or greater than the value of the specified object or the other Int16 instance.SyntaxFollowing ... Read More
AmitDiwan
119 Views
The Char.GetUnicodeCategory(String, Int32) method in C# categorizes the character at the specified position in a specified string into a group identified by one of the UnicodeCategory values.SyntaxFollowing is the syntax −public static System.Globalization.UnicodeCategory GetUnicodeCategory (string str, int index);Above, str is a string, whereas the index is the character position in ... Read More
AmitDiwan
54 Views
The Char.GetTypeCode() method in C# is used to return the TypeCode for value type Char.SyntaxFollowing is the syntax −public TypeCode GetTypeCode ();ExampleLet us now see an example to implement the Char.GetTypeCode() method −using System; public class Demo { public static void Main(){ char val = '5'; ... Read More
AmitDiwan
454 Views
The Char.GetNumericValue() method in C# is used to convert the specified numeric Unicode character to a double-precision floating-point number.SyntaxFollowing is the syntax −public static double GetNumericValue (char ch);Above, the parameter ch is the Unicode character to convert.ExampleLet us now see an example to implement the Char.GetNumericValue() method −using System; public ... Read More
AmitDiwan
88 Views
The Char.GetHashCode() method in C# is used to return the hash code for the current instance.SyntaxFollowing is the syntax −public override int GetHashCode ();ExampleLet us now see an example to implement the Char.GetHashCode() method −using System; public class Demo { public static void Main(){ char val ... Read More
AmitDiwan
3K+ Views
The Char.Equals() method in C# is used to return a value that indicates whether this instance is equal to a specified object or Char value.SyntaxFollowing is the syntax −public bool Equals (char ob);Above, ob is an object to compare to this instance.ExampleLet us now see an example to implement the ... Read More