Convert decimal to a whole number

已查看 15 次
跳至第一个未读帖子

John Currey

未读,
2023年1月1日 14:59:022023/1/1
收件人 SDQL API

Joe Meyer

未读,
2023年1月2日 10:46:542023/1/2
收件人 sdq...@googlegroups.com
John and SDQL API Friends,

math outside of an aggregator makes a 'running' aggregator (see http://SDQL.com/aggregator.html).

To get what you are looking for, just move the `100*` inside the aggregator, like this:
int(tS(100*(ats margin>0))/(tS(ats margin>0)+tS(ats margin<0))),tS(ats margin>0),tS(ats margin<0),R(team)@team and season=2022 |

 
Best regards,

Joe Meyer
Sports Database LLC

--

---
You received this message because you are subscribed to the Google Groups "SDQL API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sdqlapi+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sdqlapi/32de37cc-45a6-4045-bb7e-a172052d1db1n%40googlegroups.com.

John Currey

未读,
2023年1月2日 17:10:572023/1/2
收件人 SDQL API
Thanks, Joe. 
回复全部
回复作者
转发
0 个新帖子