F# supports string interpolation, but it does not use string.format internally. Use printfn $"{123.ToString("00000000")}" instead, beacuase F# needs a more explicit conversion. Hope this helps
string.format
printfn $"{123.ToString("00000000")}"