-
How can I avoid numbers less than 0.001 be converted to 0? |
Beta Was this translation helpful? Give feedback.
Answered by
jucian0
Aug 6, 2024
Replies: 2 comments 1 reply
-
Does setting a larger number of significant/fraction digits not work? Can you share the number field you are rendering? Thanks! |
Beta Was this translation helpful? Give feedback.
0 replies
-
<NumberField
isRequired
name="size"
onChange={handleChangeSize}
step={0.01}
maxValue={parseBytesToMb(maxMaxUsageInput)}
minValue={0.0000001}
value={form.values.size}
//formatOptions={{
// notation: "compact",
// style: "unit",
// unit: "byte",
// unitDisplay: "long",
// compactDisplay: "long",
// }}
>
<Label>{t('form.max-usage')} *</Label>
<FieldGroup>
<Input />
<x.span w="30">
{t('form.space-available', {
space: formatBytes(resolveFreeSpace),
})}
</x.span>
</FieldGroup>
</NumberField> This field should be able to represent 1byte as megabyte. something like 0.0000001. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Worked for me, thanks!!