rounding to integer

From: Szaniszlo Szöke <szoke.szaniszlo@xxxxxxxxx>
To: mongodb-user <mongodb-user@xxxxxxxxxxxxxxxx>
Date: Wed, 20 Apr 2016 05:54:54 -0700 (PDT)
Why ads?
Hi,

Testing function mod() with MongoDB, I found that the field value is 
rounded to an integer.
Searching field d1 this way :
 {d1: {$mod: [5, 3.5]} }

returns both records with d1 = 13.5 and d1 = 3
For example, MySql returns only d1 = 13.5

This rounding effect could be added to the documentation of the mod() 
function, or maybe mod() could deal with double values...

Thanks

-- 
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.

For other MongoDB technical support options, see: https://docs.mongodb.org/manual/support/
--- 
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user+unsubscribe@xxxxxxxxxxxxxxxx.
To post to this group, send email to mongodb-user@xxxxxxxxxxxxxxxx.
Visit this group at https://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/2a440d6e-7da4-423a-9092-d512dc5ebf51%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Why ads?