When I try to use ceiling()
function, it works okay, but when I try to divide something and give it to the ceiling function using pipeline operator (2/10 %>% ceiling())
, I get a problem.
ceiling(0.2)
1
ceiling(2/10)
1
2/10
0.2
2/10 %>% ceiling()
0.2
2 %>% `/`(10)
0.2
2 %>% `/`(10) %>% ceiling()
1
0.2 %>% ceiling()
1