C
C#8mo ago
daeodon

console.readline and float

when i enter 4.5 it says value is 45 why does it do that? shouldn't is say 4.5
No description
2 Replies
reflectronic
reflectronic8mo ago
it is probably because your computer's culture is set to one where . is a thousands separator if you type 4,5 (?) it might do what you are expecting
daeodon
daeodonOP8mo ago
yeah 4,5 works bruh thanks so much

Did you find this page helpful?