convert literal into number term

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

convert literal into number term

Marcel Spitzer
Hello,

is it possible to convert a literal or a string into a number term in
asl-code? And how can I do this?

Greets
Marcel




------------------------------------------------------------------------------
_______________________________________________
Jason-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jason-users
Reply | Threaded
Open this post in threaded view
|

Re: convert literal into number term

Jomi Hubner
Hi Marcel,

The internal action .term2string can do the job:
        http://jason.sourceforge.net/api/jason/stdlib/term2string.html

Jomi


> On 27/05/2015, at 06:45, Marcel Spitzer <[hidden email]> wrote:
>
> Hello,
>
> is it possible to convert a literal or a string into a number term in
> asl-code? And how can I do this?
>
> Greets
> Marcel
>
>
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Jason-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/jason-users

--
Jomi Fred Hubner
Federal University of Santa Catarina
Department of Automation and Systems Engineering
PO Box 476, Florianópolis, SC
88040-900 Brazil
http://www.das.ufsc.br/~jomi


------------------------------------------------------------------------------
_______________________________________________
Jason-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jason-users
Reply | Threaded
Open this post in threaded view
|

Re: convert literal into number term

Marcel Spitzer
Thank you, Jomi. This method does the job.

Greets
Marcel


On 27.05.2015 18:48, Jomi Hubner wrote:

> Hi Marcel,
>
> The internal action .term2string can do the job:
> http://jason.sourceforge.net/api/jason/stdlib/term2string.html
>
> Jomi
>
>
>> On 27/05/2015, at 06:45, Marcel Spitzer <[hidden email]> wrote:
>>
>> Hello,
>>
>> is it possible to convert a literal or a string into a number term in
>> asl-code? And how can I do this?
>>
>> Greets
>> Marcel
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> Jason-users mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/jason-users
>

------------------------------------------------------------------------------
_______________________________________________
Jason-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jason-users