Hi yes, that's javas default. Float types always with dot. Julian
Von meinem Mobiltelefon gesendet -------- Ursprüngliche Nachricht -------- Betreff: Re: time series with double datatype insert problem Von: Jialin Qiao An: dev@iotdb.apache.org Cc: Hi, When I try the following java codes, it always print 0.0. ``` float a = 0f; System.out.println(a); a = 0.0f; System.out.println(a); double b = 0d; System.out.println(b); b = 0.0d; System.out.println(b); ``` I think it is fine to print 0.0 in the IoTDB Client, as long as it is a float value (0f). I wonder how could KairosDB print 0... Best, -- Jialin Qiao School of Software, Tsinghua University 乔嘉林 清华大学 软件学院 > -----原始邮件----- > 发件人: "勾王敏浩" <gwm...@mails.tsinghua.edu.cn> > 发送时间: 2019-09-05 15:02:27 (星期四) > 收件人: dev@iotdb.apache.org > 抄送: > 主题: time series with double datatype insert problem > > Hi, > Currently, we find that a time series with DATATYPE=DOUBLE, > ENCODING=GORILLA ,when insert a datapoint like (1,0) , it returns (1,0.0). > While in KairosDB, it returns (1,0). Do we need to modify this? > > > Thank you, > Wangminhao Gou >