#include <stdio.h>
#include <stdlib.h>
#include <pmt/pmt.h>
// compiled with "g++ doublesTest.cc -o doublesTest -lgnuradio-pmt"
int main(){
const double orig = 1234567890.0;
const double serdes = pmt::to_double(pmt::deserialize_str(pmt::serialize_str(pmt::from_double(orig))));
const double normal = pmt::to_double(pmt::from_double(orig));
printf("original:%0.3f, serdes:%0.3f, noserdes:%0.3f\n", orig, serdes, normal);
return 0;
}