Skip to content

binarysearch.closest with decimals #12

Description

@Lee182
const index = binary.closest([25, 33, 50], 32.99)
expect(index).to.eq(1)

// this throws and the index is 0. I would expect it to be 1
// does the compare closest function work with decimals?

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