# Fixed length Integer

**URL:** <https://forum.fixtrading.org/t/fixed-length-integer/1341>\
**Category:** General Q&A\
**Tags:** certification, xid\_164234, imported\
**Created:** [March 29, 2011, 4:19pm UTC](https://forum.fixtrading.org/t/fixed-length-integer/1341 "2011-03-29T16:19:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sewhanbahk42\_x](https://avatars.discourse-cdn.com/v4/letter/s/65b543/32.png) [@sewhanbahk42\_x](https://forum.fixtrading.org/u/sewhanbahk42_x)\
**Post date:** [March 29, 2011, 4:19pm UTC](https://forum.fixtrading.org/t/fixed-length-integer/1341/1 "2011-03-29T16:19:19Z")

</div>

Imported from previous forum

---

<div class="post-metadata">

**Author:** ![sewhanbahk42\_x](https://avatars.discourse-cdn.com/v4/letter/s/65b543/32.png) [@sewhanbahk42\_x](https://forum.fixtrading.org/u/sewhanbahk42_x)\
**Post date:** [March 29, 2011, 4:19pm UTC](https://forum.fixtrading.org/t/fixed-length-integer/1341/2 "2011-03-29T16:19:19Z")

</div>

I have a couple of questions.

1. Is it valid if integer tag coming with preceeding zeros - 34=00000025 ?
2. And is it valid if integer tag coming with fixed length - 9=0058 ?

ex) Recv 8=FIX.4.2 9=0058 35=0 34=00000025 52=20110329-08:25:38.809 49=ABC 56=XYZ 10=015

Thank you for the help in advance.

Shawn in NJ

---

<div class="post-metadata">

**Author:** ![jorgthonnes](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.fixtrading.org/jorgthonnes/32/196_2.png) [@jorgthonnes](https://forum.fixtrading.org/u/jorgthonnes)\
**Post date:** [March 30, 2011, 9:33am UTC](https://forum.fixtrading.org/t/fixed-length-integer/1341/3 "2011-03-30T09:33:46Z")

</div>

Hi Shawn,

some commercial engines use something like 9=0058 so this should be OK.

See also volume 1 of the FIX specification, section data types:  
Here is explicitly stated, that both “int” and “float” types may contain leading zeros.

Cheers, Jörg

> I have a couple of questions.
> 
> 1. Is it valid if integer tag coming with preceeding zeros - 34=00000025 ?
> 2. And is it valid if integer tag coming with fixed length - 9=0058 ?
> 
> ex) Recv 8=FIX.4.2 9=0058 35=0 34=00000025 52=20110329-08:25:38.809 49=ABC 56=XYZ 10=015
> 
> Thank you for the help in advance.
> 
> Shawn in NJ

---

<div class="post-metadata">

**Author:** ![sewhanbahk42\_x](https://avatars.discourse-cdn.com/v4/letter/s/65b543/32.png) [@sewhanbahk42\_x](https://forum.fixtrading.org/u/sewhanbahk42_x)\
**Post date:** [March 30, 2011, 2:41pm UTC](https://forum.fixtrading.org/t/fixed-length-integer/1341/4 "2011-03-30T14:41:41Z")

</div>

Jörg  
I’ve got it.  
Thanks a lot.

Shawn

> Hi Shawn,
> 
> some commercial engines use something like 9=0058 so this should be OK.
> 
> See also volume 1 of the FIX specification, section data types:  
> Here is explicitly stated, that both “int” and “float” types may contain leading zeros.
> 
> Cheers, Jörg
> 
> > I have a couple of questions.
> > 
> > 1. Is it valid if integer tag coming with preceeding zeros - 34=00000025 ?
> > 2. And is it valid if integer tag coming with fixed length - 9=0058 ?
> > 
> > ex) Recv 8=FIX.4.2 9=0058 35=0 34=00000025 52=20110329-08:25:38.809 49=ABC 56=XYZ 10=015
> > 
> > Thank you for the help in advance.
> > 
> > Shawn in NJ

---

<div class="post-metadata">

**Author:** ![vladlazarenko\_x](https://avatars.discourse-cdn.com/v4/letter/v/d78d45/32.png) [@vladlazarenko\_x](https://forum.fixtrading.org/u/vladlazarenko_x)\
**Post date:** [June 2, 2011, 3:19am UTC](https://forum.fixtrading.org/t/fixed-length-integer/1341/5 "2011-06-02T03:19:36Z")

</div>

> some commercial engines use something like 9=0058 so this should be OK.

Do you know why they do it? By having that value fixed-length, they reuse the same buffer over and over to send a message (i.e. an order). This beats crap out of guys who doesn’t use the same approach in terms of performance. Applicable on exchanges where FIX is a native protocol. So, good for them.
