I have compiled the last git version (it took about 3h on Trimslice).
This is the output of "mono -V"
$this->bbcode_second_pass_code('', '
root@Arch Linux ARM install bin $ ./mono -V
Mono Runtime Engine version 3.2.7 (master/32861b7 Sun Dec 15 18:14:00 CET 2013)
Copyright (C) 2002-2013 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
TLS: __thread
SIGSEGV: normal
Notifications: epoll
Architecture: armel,vfp+hard
Disabled: none
Misc: softdebug
LLVM: supported, not enabled.
GC: sgen
')
Now the math tests give the correct results:
$this->bbcode_second_pass_code('', '
root@Arch Linux ARM install mono-armv7h $ csharp
Mono C# Shell, type "help;" for help
Enter statements below.
csharp> System.Math.Floor(10.5);
10
csharp> System.Math.Pow(2.0,2.0);
4
csharp> System.Math.Sqrt(9.0);
3
')
The build can be downloaded here:
https://danilo.homenet.org/shares/U/armv7h/mono-3.2.7-1-armv7h.pkg.tar.xz