| 2010 | } |
| 2011 | |
| 2012 | float pn_data_get_float(pn_data_t *data) |
| 2013 | { |
| 2014 | pni_node_t *node = pni_data_current(data); |
| 2015 | if (node && node->atom.type == PN_FLOAT) { |
| 2016 | return node->atom.u.as_float; |
| 2017 | } else { |
| 2018 | return 0; |
| 2019 | } |
| 2020 | } |
| 2021 | |
| 2022 | double pn_data_get_double(pn_data_t *data) |
| 2023 | { |
no test coverage detected