<p style="white-space: pre-wrap; word-wrap: break-word;"><br>> Another approach could be using actual float and snprintf("%.5f")?<br>> IIRC we don't want float?</p><p style="white-space: pre-wrap; word-wrap: break-word;">That was mostly a concern for the sysmoBTS1002 (and related) which were based on old ARM cores without any FPU, and hence had to jump through hoops to do float arithmetic.</p><p style="white-space: pre-wrap; word-wrap: break-word;">As that platform is discontinued, and the probability of people wanting to use a OsmoBSC with Lb interface or even a SMLC there is super low, *and* the rate of SMLC messages (and ence float arithmetic) is very low, I think there is no constraint from a CPU/harware point of view to use float these days.</p><p style="white-space: pre-wrap; word-wrap: break-word;">For reference, if you look at osmo-trx, it is full of float.</p><p style="white-space: pre-wrap; word-wrap: break-word;">I'm not saying it's neccessarily a good thing to use float everywhere now, but if that's the natural representatoin for something, there is nothing preventing its use.</p><p><a href="https://gerrit.osmocom.org/c/libosmocore/+/20331">View Change</a></p><ul style="list-style: none; padding: 0;"></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmocore/+/20331">change 20331</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/libosmocore/+/20331"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libosmocore </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Ib9aee749cd331712a4dcdadfb6a2dfa4c26da957 </div>
<div style="display:none"> Gerrit-Change-Number: 20331 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: neels <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: neels <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-CC: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-CC: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Thu, 01 Oct 2020 17:53:45 +0000 </div>
<div style="display:none"> Gerrit-HasComments: No </div>
<div style="display:none"> Gerrit-Has-Labels: No </div>
<div style="display:none"> Gerrit-MessageType: comment </div>