- .NET Core 2.0 By Example
- Rishabh Verma Neha Shrivastava
- 108字
- 2021-06-24 18:30:58
Data types
F# has a rich data type system. We can broadly classify them as:
- Integral types: sbyte, byte, int16, uint16, int32, uint32, int64, and bigint
- Floating point types: float32, float, and decimal
- Text types: char and string
- Other types: bool
These types are also referred to as fundamental primitive types in F#. Apart from these, F# has an exhaustive list of predefined types as well, such as lists, arrays, records, enumerations, tuples, units, sequences, and so on. It is recommended that a person learning F# goes through the official Microsoft documentation on F# at https://docs.microsoft.com/en-us/dotnet/fsharp/.