This thread implies that it is possible, but that one failes in the CTP (1.9.6.2).

However, this thread explains what you want, but the steak is cooked in a french sauce.

1
2
3
4
5
6
let (a:Text.Format < _, _, _, _ >) = "%d"

let b = 123456

printf a b
By on 4/10/2009 11:17 AM ()

I think it's impossible. (EDIT: I stand corrected, see below.)

This may do exactly what you need, though:

1
2
3
4
5
6
7
 

let pa = sprintf "%d"
let b = 12345

let s = pa b
By on 4/10/2009 10:43 AM ()
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