Skip to content

Floating point incrementation erratic behaviour #17

@mattst

Description

@mattst

Using: Sublime Text 3 Build 3059, Linux Mint 13 LTS.
Using: InsertNums v. 2.0.1 (version from: Insert Nums/package-metadata.json)

When using InsertNums to insert a number sequence with a floating point step value there are some very strange results.

// Example of `1:.1` with 10 selected regions.

1.0
1.1
1.2000000000000002
1.3000000000000003
1.4000000000000004
1.5000000000000004
1.6000000000000005
1.7000000000000006
1.8000000000000007
1.9000000000000008

I've done some screen captures in order to show a variety of examples.

st_insertnums_bug_image_01
st_insertnums_bug_image_02
st_insertnums_bug_image_03
st_insertnums_bug_image_04
st_insertnums_bug_image_05
st_insertnums_bug_image_06
st_insertnums_bug_image_07
st_insertnums_bug_image_08
st_insertnums_bug_image_09

Zip file with all images: sockshare.com - no waiting

Hope this helps.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions