Division Auto Truncates Decimal Even After Casting Inputs
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2023 10:52 AM
Division of two numbers is auto truncating decimals and I can't get a more precise result.
Example of things I've tried:
10 / 60 => 0.17
cast(10 as float) / cast(60 as float) => 0.17
cast(cast(10 as float) / cast(60 as float) as float) => 0.17
round(10 / 60, 4) => 0.17
Expected result of all of these should be some form of
0.166666....7
Any help is appreciated