✅ Initializing 'double's maximum value; Exeption
Hello hello (: ... silly little question!
Went over to C#-doc and looked up built-in data types and, for funsies, CTRL-C/V them all down and initialized em' with their biggest value. All dandy, but not for the dreaded 'double'! It threw an error. Floating-point constant is outside the range of type 'double'.
Asked ChatGPT and tried finding something on the internet, and the answer was:
The reason you can't initialize a double with the value of 1.79769313486232e308 is because this is the maximum value that a double can represent in C#.
Which i dont truly understand! If it is the maximum-value, why cant i assign it? It works with all the other built-in data types. ):
https://media.discordapp.net/attachments/1068421165086937108/1080521899760685146/image.png?width=539&height=60
https://media.discordapp.net/attachments/1068421165086937108/1080522173816524881/image.png?width=580&height=292
Went over to C#-doc and looked up built-in data types and, for funsies, CTRL-C/V them all down and initialized em' with their biggest value. All dandy, but not for the dreaded 'double'! It threw an error. Floating-point constant is outside the range of type 'double'.
Asked ChatGPT and tried finding something on the internet, and the answer was:
The reason you can't initialize a double with the value of 1.79769313486232e308 is because this is the maximum value that a double can represent in C#.
Which i dont truly understand! If it is the maximum-value, why cant i assign it? It works with all the other built-in data types. ):
https://media.discordapp.net/attachments/1068421165086937108/1080521899760685146/image.png?width=539&height=60
https://media.discordapp.net/attachments/1068421165086937108/1080522173816524881/image.png?width=580&height=292


