18637
October 6, 2020, 10:33pm
1
Hi,
Is there an easy eay to convert decimal to text?
The extension textconverter does no include this unfortunately.
In my ble code my char is being transmitted as decimal
[68 101 118 51 50] I need to convert it back to text "dev32" in this case.
Any easy solutions? Thanks in advance.
ABG
October 6, 2020, 10:57pm
2
1 Like
TIMAI2
October 6, 2020, 11:21pm
3
Similar method using dec/char csv file
char2Text.aia (3.2 KB)
18637
October 7, 2020, 12:52am
4
Thank you! I'm still on a steep learning curve. I can convert a single byte to text by indexing it.
I can strip out the [0]'s leaving me with [51,50]
But if I wanted to convert the whole lot in one hit [51,50] to text, that's where I'm now stuck. Its probability obvious solution, which I haven't learnt yet....
18637
October 7, 2020, 1:12am
5
@ABG Actually Disregard. I think I figured what I did wrong. This seems to work, hopefully its correct...
Thanks once again..!
1 Like
You can use this very simple extension
com.extension.Decimal.xoma.aix (5.9 KB)
1 Like
18637
October 7, 2020, 5:00am
7
@Kumaraswamy Awesome! Just what I was looking for! Thank you.
1 Like
If you find my post as solution then please tick it.
18637
October 7, 2020, 8:21am
10
In the end, I still had to trim the decimal so ennded up leaving it as is.
Taifun
October 8, 2020, 4:42pm
11
you might want to provide a screenshot of the final solution then
thank you
Taifun
system
Closed
October 15, 2020, 9:46pm
13
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.