Linq Sum Group by without decimals

时间:2016-02-12 21:41:43

标签: c# decimal number-formatting

I have this Group by Sum LinQ but it give me a result with alot of decimals is there a way to round up the number? to not display the decimals? This is my LinQ:

http://home.ddns.net/app1 => http://vm1:8080

http://home.ddns.net/app2 => http://vm2:8081

1 个答案:

答案 0 :(得分:2)

Depending on what you mean by "round up", you can use N<-5 pacsub <- data.frame((seq(1, N, 1))) colnames(pacsub) <- c("Subject") pacsub pacwk<-data.frame(seq(0, 8, 1)) colnames(pacwk) <- c("Week") pacsub$Week <- rep(pacwk, times = N) pacsub or Decimal.Round(), Math.Floor().

Math.Ceiling()