Is "^" different in Mac??

A friend downloaded and installed Mac version of LibreOffice (he has a
Mac). He told me that he can't use "^" simbol to calculate exponentiation
in ooBasic b ecause always get syntax error or something like that. At
work, using Windows version of LibreOffice everything works fine.
Any ideia about what is happening?
(and how to calculate exponentiation in Mac version of LibreOffice?)

Thanks

Alex Mitsio Sato

Hi :slight_smile:
I think the Mac version might be a little different from the Gnu&Linux one.  I know the Windows one is very different although they try to keep them the same.

Do you know which version of LibreOffice?  has he/she tried different versions and found the same thing?
Regards from
Tom :slight_smile:

Hi Alex

A friend downloaded and installed Mac version of LibreOffice (he has a
Mac). He told me that he can't use "^" simbol to calculate exponentiation
in ooBasic b ecause always get syntax error or something like that. At
work, using Windows version of LibreOffice everything works fine.
Any ideia about what is happening?

Some sample code would be nice, so that it could be checked out on other
machines than the original one where the problem occurred.

Alex

Am 24.05.2012 18:26, Alexander Thurgood wrote:

Hi Alex

A friend downloaded and installed Mac version of LibreOffice (he has a
Mac). He told me that he can't use "^" simbol to calculate exponentiation
in ooBasic b ecause always get syntax error or something like that. At
work, using Windows version of LibreOffice everything works fine.
Any ideia about what is happening?

Some sample code would be nice, so that it could be checked out on other
machines than the original one where the problem occurred.

Alex

The problem description is clear. If I understand it correctly, the following code will pop up a message with calculation result "9" whereas the same code will raise a syntax error on a Mac.

Sub Main
print 3^2
End Sub

Hi Andreas,

Sub Main
print 3^2
End Sub

Yes, that's what I thought, but it works fine on my Mac OSX 10.6.8 :

LibreOffice 3.5.3.2
Version ID : 235ab8a-3802056-4a8fed3-2d66ea8-e241b80

Alex

Hi :slight_smile:
Could it be a problem with the user profile?
https://wiki.documentfoundation.org/Documentation/UserProfile
It's often good to start by renaming the User Profile just to see if whatever weirdness vanishes after doing that.  You might end-up copying the user profile back, or chunks of it back but renaming the profile is a good way of "getting back to factory defaults".

or is it something weird about fonts and choosing the 'wrong' symbol somehow?  Is the ^ on the top of the 6 key or is it selected as a  special character?
Regards from
Tom :slight_smile:

Hi Tom,

or is it something weird about fonts and choosing the 'wrong' symbol somehow? Is the ^ on the top of the 6 key or is it selected as a special character?
Regards from

On a Macbook, the circumflex character appears on a key to the right of
the letter 'P'.

Alex

I have a Mac. System 10.7.4
Libre O, 3.5.4.2
The ^ is Shift 6 and it works perfectly.
Enter 3^2 does not work.
The correct syntax is "=3^2".

Tink.

Hi :slight_smile:
Doesn't "=3^2" just give the equation rather than the answer?  Weird!  It sounds like Mac is good fun to get used to. 
Regards from
Tom :slight_smile:

Doesn't "=3^2" just give the equation rather than the answer? Weird! It

sounds like Mac is good fun to get used to.
Regards from
Tom :slight_smile:

No Tom =3^2 gives the result, 9.

You seem to be talking about LO Calc formula, while this thread is about
ooBasic (macro language). Or I have missed something important here.

Yes, but what is the difference?
Macro basic or Calc formula.
Either way, you still need to use the correct syntax.

Tink.