C# Tutorial Float

Convert

  1. Convert float to string using the specified culture-specific format information in CSharp
  2. Convert float to string using the specified format and culture-specific format information in CSharp
  3. Convert float to string using the specified format in CSharp
  4. Convert float to to string with ToString method using default format in CSharp
  5. Convert string in a specified style and culture-specific format to float in CSharp
  6. Convert string to float with default settings in CSharp

Basic

  1. Create float point value with literal: 3.281f and 5E-02 in CSharp
  2. Get the smallest positive Single value that is greater than zero in CSharp
  3. Use Remainder Operator on float point data type in CSharp

Format

  1. Format a float number as currency in CSharp
  2. Format float as decimal in CSharp
  3. Format float as number value for different culture in CSharp
  4. Format float as percent value in CSharp
  5. Format float number as scientific notation in CSharp
  6. Format float point as Hexadecimal in CSharp
  7. Format float point value as fixed point in CSharp
  8. Format float point value as number in CSharp
  9. Format float point value in general format in CSharp
  10. Format float to string which can be easily parsed in CSharp
  11. Format float value in percentage for different culture in CSharp
  12. Format float value to exponential form in CSharp
  13. Format float value to string with fixed point in CSharp

Parse

  1. Parse a string in exponential notation to float in CSharp
  2. Parse a string with leading and trailing white space, and currency symbol to float in CSharp
  3. Read value from console and convert it to float in CSharp
  4. Try to Parse currency value using en-GB culture in CSharp
  5. Try to Parse string exponential notation to float in CSharp
  6. Try to parse a string wit thousands separator to float in CSharp
  7. Try to parse a string with currency symbol and a thousands separator to float in CSharp
  8. Try to parse string with Decimal Point to float in CSharp




















Home »
  C# Tutorial »
    Data Types »




C# Data Types
Bool
Byte
Char
Decimal
Double
Float
Integer
Long
Short
String
C# Array
Array Example
Byte Array
C# Standard Data Type Format
BigInteger
Complex
Currency
DateTime
DateTimeOffset
DateTime Format Parse Convert
TimeSpan
TimeZone
Enum
Null
tuple
var