Generate a unique value for a combination of two numbers

后端 未结 9 923
有刺的猬
有刺的猬 2020-12-16 16:09

Consider I\'ve two numbers 1023232 & 44. I want to generate a unique number representing this combination of numbers. How can i generate it?

Requirement

9条回答
  •  南笙
    南笙 (楼主)
    2020-12-16 17:02

    If X & Y are Int add a seperator. Always unique.

    X = 100, Y = 5 => 100.5

    X = 1023232, Y = 44 => 1023232.44

提交回复
热议问题