Open ChrisWRWX opened 1 year ago
Thanks for reporting this @ChrisWRWX.
@yaweizhu-henson, could you please investigate?
Hi, yes currently the number have limitation, we have internal backlog to track this: #8009234
We will start the investigation ASAP when we have the bandwidth. Or you can provide the scale of affected users, it will help us re-prioritize this bug. Thanks for your patience!
We're also running into this right now, where we want to ensure different integer ranges (16 bit, 32 bit, 64 bit - signed/unsigned). I can see this works within Excel, is this a limitation of officejs?
edit: we can workaround by using "decimal" instead.
Provide required information needed to triage your issue
Your Environment
Expected behavior
Setting data validation for whole numbers using JS should allow larger positive and negative integers, as is possible by the Excel UI.
Current behavior
When setting 'wholeNumber' data validation in JS, only values in the range 0-65535 can be set.
It appears this is using a 16 bit unsigned integer, where the Excel UI itself is not restricted by the same limitation.
65,535 works as expected but 65,536 does not.
Steps to reproduce
This code does work as expected:
But not if the integer is outside the range 0-65535