Skip to content

vbscript string from small floats missing exponent part  #2

@francisdb

Description

@francisdb

Mind the missing E-11 in below output

debug.print "-1.525104E-11 = " & -1.525104E-11
debug.print "-1.5E-11 = " & -1.5E-11
2025-02-27 10:53:43.975 INFO  [702065] [DebuggerModule::Print@4270] Script.Print '-1.525104E-11 = -1.525104'
2025-02-27 10:53:43.975 INFO  [702065] [DebuggerModule::Print@4270] Script.Print '-1.5E-11 = -0.000000000015'

On wine:

wscript.echo "-1.525104E-11 = " & -1.525104E-11
wscript.echo "-1.5E-11 = " & -1.5E-11
-1.525104E-11 = -1.525104E-11
-1.5E-11 = -0.000000000015

Could be related to https://github.com/vpinball/vpinball/blob/a239ab4756990cc519f53fd727e88498951eaf8f/standalone/inc/wine/wine-41abefccebf2729a70be9ec7bdb1c6226a56e369.patch#L1982-L2022

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions