Run Code  | API  | Code Wall  | Users  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

(Sort)Rounding Magic - C#

Language: Layout:
+ ] Show input
Compilation time: 0,16 sec, absolute running time: 0,11 sec, cpu time: 0,09 sec, average memory usage: 16 Mb, average nr of threads: 3 
fork mode |  history  | discussion
1, NearestOneHalf: 1
1,1, NearestOneHalf: 1
1,2, NearestOneHalf: 1
1,3, NearestOneHalf: 1,5
1,4, NearestOneHalf: 1,5
1,5, NearestOneHalf: 1,5
1,6, NearestOneHalf: 1,5
1,7, NearestOneHalf: 1,5
1,8, NearestOneHalf: 2
1,9, NearestOneHalf: 2
2,0, NearestOneHalf: 2

1, NearestTwo: 1
1,1, NearestTwo: 1
1,2, NearestTwo: 1
1,3, NearestTwo: 1
1,4, NearestTwo: 1
1,5, NearestTwo: 2
1,6, NearestTwo: 2
1,7, NearestTwo: 2
1,8, NearestTwo: 2
1,9, NearestTwo: 2
2,0, NearestTwo: 2
2,1, NearestTwo: 2
2,2, NearestTwo: 2
2,3, NearestTwo: 2
2,4, NearestTwo: 2
2,5, NearestTwo: 3
2,6, NearestTwo: 3
2,7, NearestTwo: 3
2,8, NearestTwo: 3
2,9, NearestTwo: 3
3,0, NearestTwo: 3

1, Nearest Quarter: 1
1,1, Nearest Quarter: 1
1,2, Nearest Quarter: 1,25
1,3, Nearest Quarter: 1,25
1,4, Nearest Quarter: 1,5
1,5, Nearest Quarter: 1,5
1,6, Nearest Quarter: 1,5
1,7, Nearest Quarter: 1,75
1,8, Nearest Quarter: 1,75
1,9, Nearest Quarter: 2
2,0, Nearest Quarter: 2
2,1, Nearest Quarter: 2
2,2, Nearest Quarter: 2,25
2,3, Nearest Quarter: 2,25
2,4, Nearest Quarter: 2,5
2,5, Nearest Quarter: 2,5
2,6, Nearest Quarter: 2,5
2,7, Nearest Quarter: 2,75
2,8, Nearest Quarter: 2,75
2,9, Nearest Quarter: 3
3,0, Nearest Quarter: 3