Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » 64bit figure(xtext 64bit figure)
64bit figure [message #1834819] Wed, 18 November 2020 15:09 Go to next message
Nils K. is currently offline Nils K.Friend
Messages: 13
Registered: November 2020
Junior Member
Hello,

currently, I have the issue that I'd like to generate code with 64bit values.

Here, I thought about using the existing type ecore::EDouble in the following manner:

terminal DOUBLE returns ecore::EDouble:'-'? ('0'..'9')+ '.' ('0'..'9')+;

Unfortunately, it seems large numbers (more than 9 figures) like 214748346471 and 214748346471.111 are still not supported and result in errors.

Is my grammar definition correct? Do I have to use a different type maybe?
Thanks for any hints
Re: 64bit figure [message #1834822 is a reply to message #1834819] Wed, 18 November 2020 15:49 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
hi, did you implement a value converter? if yes, how

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de

[Updated on: Wed, 18 November 2020 15:54]

Report message to a moderator

Re: 64bit figure [message #1834837 is a reply to message #1834822] Wed, 18 November 2020 19:43 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

You want EBigDecimal for more than 56 bit fixeds.

Regards

Ed Willink
Previous Topic:JVM Inferrer -- Possible to generate two declared types that reference each other?
Next Topic:Want add Array slice feature for my library
Goto Forum:
  


Current Time: Thu Apr 25 14:05:21 GMT 2024

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

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

Back to the top