摘要:
JAVA取整以及四舍五入 下面来介绍将小数值舍入为整数的几个方法:Math.ceil()、Math.floor()和Math.round()。 这三个方法分别遵循下列舍入规则:Math.ceil()执行向上舍入,即它总是将数值向上舍入为最接近的整数;Math.floor()执行向下舍入,即它总是将数 阅读全文
posted @ 2016-08-24 17:16
龙昊雪
阅读(58012)
评论(0)
推荐(3)
摘要:
由于mongodb数据库类似js的写法,所以即使数据库中新的列不存在也会自动创建db.hospital.find().forEach( function(item){ db.hospital.update({_id:item._id},{$set:{location:[item.longitude,item.latitude]}},true) } ) 阅读全文
posted @ 2016-08-24 16:35
龙昊雪
阅读(2902)
评论(0)
推荐(0)
摘要:
mongoDB 自带LBS查询附近的人 阅读全文
posted @ 2016-08-24 15:04
龙昊雪
阅读(1190)
评论(0)
推荐(0)
摘要:
mongodb常用操作语句 A:创建数据表 db.createCollection(name, {capped: <Boolean>, autoIndexId: <Boolean>, size: <number>, max <number>} ) 1、现有表以及数据添加字段(多个字段) db.tbG 阅读全文
posted @ 2016-08-24 14:19
龙昊雪
阅读(3778)
评论(0)
推荐(0)

浙公网安备 33010602011771号