Works fine for me.

1
2
3
4
5
6
7
8
9
10
11
Microsoft (R) F# 2.0 Interactive build 4.0.30319.1

Copyright (c) Microsoft Corporation. All Rights Reserved.

For help type #help;;

> 

val x : System.Numerics.BigInteger = 17

> 
By on 5/6/2011 11:40 AM ()

Perhaps it's a version issue. I am running it from Try F# - tutorials, which seems to be a couple of builds old for some reason:

1
2
3
4
5
6
7
8
9
Microsoft (R) F# 2.0 Interactive build 2.0.5.0

Copyright (c) 2002-2010 Microsoft Corporation. All Rights Reserved.

For help type #help;;

> [Loading init.fsx]

> let x=17I

"val x : System.Numerics.BigInteger =StructuredFormatDisplay exception: Error 0x2115. "

By on 5/6/2011 12:26 PM ()

I believe that the build number there is Silverlight-specific. Having said that, the problem you're seeing is limited to displaying bigints - you can actually still use them in calculations without any other issues. For instance, try this:

1
2
3
4
5
6
7
do
    let x = 17I
    let y = 23I
    let b = x < y
    printfn "%A<%A: %b" x y b

By on 5/9/2011 1:51 PM ()

Yes, the build is specific to Try F# and it is an issue with formatting. Thanks for reporting it.

By on 5/9/2011 7:43 PM ()

This is fixed on TryFSharp now, thanks guys.

By on 5/11/2011 1:11 PM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper