Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » How to convert string to double in EOL
How to convert string to double in EOL [message #1408242] Thu, 14 August 2014 15:28 Go to next message
Arunkumar Ramaswamy is currently offline Arunkumar RamaswamyFriend
Messages: 57
Registered: April 2014
Member
How to convert string to double in EOL?
For example
var t:String = '10';
how to convert t to double?
Re: How to convert string to double in EOL [message #1408244 is a reply to message #1408242] Thu, 14 August 2014 15:34 Go to previous message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 2163
Registered: July 2009
Location: York, UK
Senior Member

HI,

'10'.asReal() should do the trick (see Table 3.1 in the Epsilon Book [1]).

Cheers,
Dimitris

[1] https://www.eclipse.org/epsilon/doc/book/
Previous Topic:EVL: unset elements (enum) in XML instance evaluated
Next Topic:Copy one element to another
Goto Forum:
  


Current Time: Fri Apr 26 00:48:46 GMT 2024

Powered by FUDForum. Page generated in 0.03215 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top