This code used to work perfectly too, now it fails even in 32bit mode:
#COMPILE EXE
#COMPILER OXYGEN ' use Oxygen compiler.
'#COMPILER pbwin ' Use PowerBASIC compiler.
#OPTIONS X32 ' You can choose platform here, 32 or 64 bits.
#OPTIONS developer ' The output will be captured in the console output tab.
#DIM ALL
' Note: Click the Console output tab to display the output of this example.
' You can then switch compilers to make sure the output is the same.
' THIS EXAMPLE SHOWCASES THE OUTPUT OF FORMAT$
FUNCTION PBMAIN() AS LONG
' Compare the output of FORMAT$
STDOUT "Compiled with " & EXE.compiler$ & "."
STDOUT
stdout ",12,345,6 7 8.2 = " & FORMAT$(12345678.2238, ",#,# # #.#")
stdout
stdout ",12,345,6 7 8.2 = " & FORMAT$(12345678.2238, ",#, # #.#")
stdout
stdout ",12,345,67 8.2 = " & FORMAT$(12345678.2238, ",#,# #.#")
stdout
stdout ",123456 7 8..2.4 = " & FORMAT$(12345678.2388, ",# # #..#.#")
stdout
stdout " 23 2 1.8 = " & FORMAT$(2321.75, " # # #.#")
stdout
stdout " XYZ=5.55# = " & FORMAT$(5.55, "HELLO !""XYZ=""#.##\#")
stdout
stdout " 0000010 = " & FORMAT$(10, "0000000")
stdout
stdout "++--20-.$0.0% = " & FORMAT$(1 / 5!, "++--*+,-./$0.0%")
stdout "-100 = " & FORMAT$(-100, "+00000.00;-000")
END FUNCTION