Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » Problems declaring a Float variable
Problems declaring a Float variable [message #552634] Thu, 12 August 2010 21:57 Go to next message
Hallvard Traetteberg is currently offline Hallvard TraettebergFriend
Messages: 673
Registered: July 2009
Location: Trondheim, Norway
Senior Member
Hi,

I try to declare a float variable as follows:
var workload : Float = 0.0;
I get the following error message:
Type 'Float' not found

Hallvard
Re: Problems declaring a Float variable [message #552685 is a reply to message #552634] Fri, 13 August 2010 07:53 Go to previous messageGo to next message
Louis Rose is currently offline Louis RoseFriend
Messages: 440
Registered: July 2009
Location: York, United Kingdom
Senior Member
Hi Hallvard,

EOL defines four primitive types: Boolean, String, Integer and Real. The latter should be used for representing floating point numbers.

There's some more information about EOL's types in Section 3.3 of the Epsilon book, here: http://www.eclipse.org/gmt/epsilon/doc/book

Cheers,
Louis.
Re: Problems declaring a Float variable [message #552733 is a reply to message #552685] Fri, 13 August 2010 09:59 Go to previous messageGo to next message
Hallvard Traetteberg is currently offline Hallvard TraettebergFriend
Messages: 673
Registered: July 2009
Location: Trondheim, Norway
Senior Member
On 13.08.10 09.53, Louis Rose wrote:
> Hi Hallvard,
>
> EOL defines four primitive types: Boolean, String, Integer and Real. The
> latter should be used for representing floating point numbers.

OK. It's confusing that the 'Float' literal is colored green, so it
looks like it's recognized as a valid type.

Hallvard
Re: Problems declaring a Float variable [message #554192 is a reply to message #552733] Fri, 20 August 2010 13:31 Go to previous message
Louis Rose is currently offline Louis RoseFriend
Messages: 440
Registered: July 2009
Location: York, United Kingdom
Senior Member
Hi Hallvard,

Yes, I can see why the syntax highlighting of Float and Double would be confusing! I've opened the following bug to cover this, and will fix the syntax highlighting now:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=323248

Thanks for reporting this.

Cheers,
Louis.
Re: Problems declaring a Float variable [message #593052 is a reply to message #552634] Fri, 13 August 2010 07:53 Go to previous message
Louis Rose is currently offline Louis RoseFriend
Messages: 440
Registered: July 2009
Location: York, United Kingdom
Senior Member
Hi Hallvard,

EOL defines four primitive types: Boolean, String, Integer and Real. The latter should be used for representing floating point numbers.

There's some more information about EOL's types in Section 3.3 of the Epsilon book, here: http://www.eclipse.org/gmt/epsilon/doc/book

Cheers,
Louis.
Re: Problems declaring a Float variable [message #593078 is a reply to message #593052] Fri, 13 August 2010 09:59 Go to previous message
Hallvard Traetteberg is currently offline Hallvard TraettebergFriend
Messages: 673
Registered: July 2009
Location: Trondheim, Norway
Senior Member
On 13.08.10 09.53, Louis Rose wrote:
> Hi Hallvard,
>
> EOL defines four primitive types: Boolean, String, Integer and Real. The
> latter should be used for representing floating point numbers.

OK. It's confusing that the 'Float' literal is colored green, so it
looks like it's recognized as a valid type.

Hallvard
Re: Problems declaring a Float variable [message #593089 is a reply to message #552733] Fri, 20 August 2010 13:31 Go to previous message
Louis Rose is currently offline Louis RoseFriend
Messages: 440
Registered: July 2009
Location: York, United Kingdom
Senior Member
Hi Hallvard,

Yes, I can see why the syntax highlighting of Float and Double would be confusing! I've opened the following bug to cover this, and will fix the syntax highlighting now:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=323248

Thanks for reporting this.

Cheers,
Louis.
Previous Topic:Problems declaring a Float variable
Next Topic:[HUTN] Syntax for EDataType values
Goto Forum:
  


Current Time: Tue Apr 23 07:57:25 GMT 2024

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

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

Back to the top