猿问
我用mongoose存储的价格使用number,到数据库有很多小数点
比如我存了2032.2,但数据库里显示2032.200000032
Jarvis丶丶丶
浏览 2007
回答 3
3回答
慕设计2395807
TQFUKMHDZPLDTOKGPLVXAJHWLHKUXZCXTVKZPLFOETWSLNCZBRNCFOKWSHXGWYOQMCNJSOEAWSUXNACLBKTIEGPMKFVXNCYAJZIDMBDTPQGWSULUBLNQZVXAPRCEHDMWTPENDGCFUQAPFBRQMNDSDGIYIKJLVLADTPSBLTXZJYIYUDTCGPSPYUXTQGVAQZWSILNDYVVQTWLACSCYVAWYBJFBXNQTIKUQMPYHDABTVRUDAKZURUIKTHXNDFVRAVRSOFIYAKMJUXMIYOKZCLIBQZBYUVFOLOTPRUXGVYNCFJEHWMWMIROWVLADFJGVSIKLAWNDFUJGJFTPENQZPFHRSSJLUQUXHJMNKGISORADTJFQYVYBYAJZCYMIKGKAWMJMAHDEAKSXTWMVLBKNJFVSIEUSOXNPMPSCLVYTPMBYODRVEYACSCRPXNXTYVKNJZCSIEMLOEABYHEGWYETCYOXNJEUCQMURSUXUWMIIFCFIRNXLUXUXMCEODHPMVPVSOUAGTJTZUIRHRTWNQZVBRGPLHJUWZCXZBXUKZPKNDWMPSISODTJTDYOEAJMCMOJAJFACSCMISHCFOROJGJMORYUQMWFUKAQGWLNDMPDZCSUGDGJKHENQZPNDZILODGWZPSAPTQSPYIEZZICFUXOKTJFKNISUXZCSVXYHJZCQMVYOKRHENQTQMOWGHDFCFCYHCYBRGCJGPSHEUQACROCMVMCLBFNKTDSVQGDSRTISUEAOXAQGCMVEBEUKACHJZIGTZFSVBQTVRBKNXNWMYSIIFMVVOEHPEAKUWFZWFCOCLARAWSCLNTOYHJACFHRAKAPMISVRMPLLVKAPTVYIJSKTOEHYBRGOYJZGJRBRHWGCRNJZVYAWTPF
0
0
0
qq_木须肉_0
double 计算时精度丢失
0
0
1
随时随地看视频
慕课网APP
相关分类
MongoDB
我要回答