2009.10.01 07:31 AM
2009.10.01 08:10 AM
2009.10.02 07:55 AM
2009.10.02 10:25 AM
2016.01.05 01:20 AM
2016.01.05 02:18 AM
q)round:{[d;n] ("j"$n*d) % d:xexp[10]d }
q)round[3]12.12345
12.123
q)round[3]12.12355
12.124
HTH,
Kim
Von: personal-kdbplus@googlegroups.com [mailto:personal-kdbplus@googlegroups.com] Im Auftrag von Carfield Yim
Gesendet: Dienstag, 5. Januar 2016 10:20
An: Kdb+ Personal Developers
Betreff: Re: [personal kdb+] Re: round digits
Hi, if there a way to round it more than 2 digit? Say 4 digit / 6 digit? I've just check the document but doesn't aware it mentioned it
2016.01.05 06:13 AM
2016.01.10 04:56 PM
EMEA
Tel: +44 (0)28 3025 2242
AMERICAS
Tel: +1 (212) 447 6700
APAC
Tel: +61 (0)2 9236 5700
KX. All Rights Reserved.
KX and kdb+ are registered trademarks of KX Systems, Inc., a subsidiary of FD Technologies plc.