# Comma separator not handled in Create form number input

**URL:** https://community.forestadmin.com/t/comma-separator-not-handled-in-create-form-number-input/3314
**Category:** Help me!
**Created:** [September 21, 2021, 2:23pm UTC](https://community.forestadmin.com/t/comma-separator-not-handled-in-create-form-number-input/3314 "2021-09-21T14:23:08Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Lucas\_Gerard](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/lucas_gerard/32/442_2.png) [@Lucas\_Gerard](https://community.forestadmin.com/u/Lucas_Gerard)
#### Post date: [September 21, 2021, 2:23pm UTC](https://community.forestadmin.com/t/comma-separator-not-handled-in-create-form-number-input/3314/1 "2021-09-21T14:23:09Z")

</div>

## Expected behavior

While creating an object, filling number input using comma separator should store the right decimal values. Eg: Filling “0,5” should result in storing `0.5` in database.

## Actual behavior

On object creation, number input filled with comma `,` separator is not handled, and result in storing only integer part. Eg: filling in `0,5` will store `0`.

Worth noticing that this is working as expected in Edit form, which is supporting both separators `,` and `.`.

## Failure Logs

![Forest comma sep](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/4/4cdda4806ba6dd56d3c3ca3a80c003b30f6fd4b1.gif)

## Context

Please provide any relevant information about your setup.

- Package Version: `forest-express-sequelize@8.2.2`
- Express Version: `4.17.1`
- Sequelize Version: `5.15.2`
- Database Dialect: PG
- Database Version: `11`
- Project Name: `Shotgun Admin`

---

<div class="post-metadata">

### Author: ![anon34731316](https://avatars.discourse-cdn.com/v4/letter/a/eada6e/32.png) [@anon34731316](https://community.forestadmin.com/u/anon34731316)
#### Post date: [September 22, 2021, 9:09am UTC](https://community.forestadmin.com/t/comma-separator-not-handled-in-create-form-number-input/3314/2 "2021-09-22T09:09:00Z")

</div>

Hello @Lucas_Gerard,

Thanks for your message! 🙌

I just tried to reproduce (with version 8.2.7 of `forest-express-sequelize`) but with no success 🤔  
It is actually creating the new record with the decimal number.

Could you please tell me what is the type of your `minimum fee` field is your model? And in your database?  
And please show me the payload of the request sent when creating the new record?

Thanks!

---

<div class="post-metadata">

### Author: ![Lucas\_Gerard](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/lucas_gerard/32/442_2.png) [@Lucas\_Gerard](https://community.forestadmin.com/u/Lucas_Gerard)
#### Post date: [September 22, 2021, 12:00pm UTC](https://community.forestadmin.com/t/comma-separator-not-handled-in-create-form-number-input/3314/3 "2021-09-22T12:00:16Z")

</div>

Hello @anon34731316, this is a `float8`, but actually I’ve managed to pin down the issue: this is related to the `defaultValue: 0` option in Sequelize model:

By removing this option, there is indeed no issue.

Is that something you could fix on your side?

Thank you!

---

<div class="post-metadata">

### Author: ![anon34731316](https://avatars.discourse-cdn.com/v4/letter/a/eada6e/32.png) [@anon34731316](https://community.forestadmin.com/u/anon34731316)
#### Post date: [September 23, 2021, 8:56am UTC](https://community.forestadmin.com/t/comma-separator-not-handled-in-create-form-number-input/3314/4 "2021-09-23T08:56:18Z")

</div>

Well @Lucas_Gerard, that’s very well spotted! 🙌  
I can reproduce the issue on my hand.

I’ve created a bug report so that it can be fixed in the near future.

Thanks!
