summaryrefslogtreecommitdiff
path: root/ebus-racket/inserter.rkt
diff options
context:
space:
mode:
Diffstat (limited to 'ebus-racket/inserter.rkt')
-rwxr-xr-xebus-racket/inserter.rkt2
1 files changed, 1 insertions, 1 deletions
diff --git a/ebus-racket/inserter.rkt b/ebus-racket/inserter.rkt
index 7adbe88..90e0855 100755
--- a/ebus-racket/inserter.rkt
+++ b/ebus-racket/inserter.rkt
@@ -29,7 +29,7 @@
(let ()
(define url (format "~a/~a" (baseurl?) sensor-name))
(define raw-value
- (cond ((member datatype '(data1c data2b data2c)) (real->decimal-string value))
+ (cond ((member datatype '(data1c data2b data2c)) (real->decimal-string (exact->inexact value)))
((member datatype '(bit byte data1b word bcd)) (format "~s" value))
((member datatype '(byteEnum)) value)
(else (error 'invalid-datatype))))