# Is it possible to use decimal on fees going to liquidity and reflection?

**URL:** <https://forum.openzeppelin.com/t/is-it-possible-to-use-decimal-on-fees-going-to-liquidity-and-reflection/9210>\
**Category:** Support\
**Tags:** erc20\
**Created:** [May 26, 2021, 8:01am UTC](https://forum.openzeppelin.com/t/is-it-possible-to-use-decimal-on-fees-going-to-liquidity-and-reflection/9210 "2021-05-26T08:01:59Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gino\_Schreuders](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/gino_schreuders/32/6160_2.png) [@Gino\_Schreuders](https://forum.openzeppelin.com/u/Gino_Schreuders)\
**Post date:** [May 26, 2021, 8:02am UTC](https://forum.openzeppelin.com/t/is-it-possible-to-use-decimal-on-fees-going-to-liquidity-and-reflection/9210/1 "2021-05-26T08:02:00Z")

</div>

Dear,

I’m pretty new to solidity and I can’t seem to find my question anywhere else.  
My question is if it is possible to change the:

```
uint256 public _taxFee = 5;
uint256 private _previousTaxFee = _taxFee;

uint256 public _liquidityFee = 5;
uint256 private _previousLiquidityFee = _liquidityFee;

```

To:

```
uint256 public _taxFee = 2,8;
uint256 private _previousTaxFee = _taxFee;

uint256 public _liquidityFee = 8,3;
uint256 private _previousLiquidityFee = _liquidityFee;

```

Also if it is possible to do decimal fees, do you have to use a comma or fullstop?  
Below I have an example of the solidity code of SafeMoon:

 ![image](https://us1.discourse-cdn.com/flex022/uploads/zeppelin/original/2X/b/bc95d3a057c7ede812552541f2664a04409ebd08.png)

Would really appreciate if someone can help me out 🙂

Kind regards,

Gino

---

<div class="post-metadata">

**Author:** ![FreezyEx](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/freezyex/32/5498_2.png) [@FreezyEx](https://forum.openzeppelin.com/u/FreezyEx)\
**Post date:** [May 26, 2021, 8:58am UTC](https://forum.openzeppelin.com/t/is-it-possible-to-use-decimal-on-fees-going-to-liquidity-and-reflection/9210/2 "2021-05-26T08:58:04Z")

</div>

To use decimals like 2.8% you must do the following:  
set \_taxFee = 28

and when you will calculate it divide per 1000 not per 100

---

<div class="post-metadata">

**Author:** ![Gino\_Schreuders](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/gino_schreuders/32/6160_2.png) [@Gino\_Schreuders](https://forum.openzeppelin.com/u/Gino_Schreuders)\
**Post date:** [May 26, 2021, 12:59pm UTC](https://forum.openzeppelin.com/t/is-it-possible-to-use-decimal-on-fees-going-to-liquidity-and-reflection/9210/3 "2021-05-26T12:59:52Z")

</div>

Thanks for your reply!

I want to learn solidity but I didn’t really find any good tutorial.  
Do you know any good tutorial for learning solidity?

---

<div class="post-metadata">

**Author:** ![FreezyEx](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/freezyex/32/5498_2.png) [@FreezyEx](https://forum.openzeppelin.com/u/FreezyEx)\
**Post date:** [May 26, 2021, 1:07pm UTC](https://forum.openzeppelin.com/t/is-it-possible-to-use-decimal-on-fees-going-to-liquidity-and-reflection/9210/4 "2021-05-26T13:07:17Z")

</div>

i suggest this:

> **[\#1 Solidity Tutorial & Ethereum Blockchain Programming Course |...](https://cryptozombies.io/en/course/)**
>
> CryptoZombies is The Most Popular, Interactive Solidity Tutorial That Will Help You Learn Blockchain Programming on Ethereum by Building Your Own Fun Game with Zombies — Master Blockchain Development with Web3, Infura, Metamask & Ethereum Smart...

---

<div class="post-metadata">

**Author:** ![Gino\_Schreuders](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/gino_schreuders/32/6160_2.png) [@Gino\_Schreuders](https://forum.openzeppelin.com/u/Gino_Schreuders)\
**Post date:** [May 26, 2021, 1:39pm UTC](https://forum.openzeppelin.com/t/is-it-possible-to-use-decimal-on-fees-going-to-liquidity-and-reflection/9210/5 "2021-05-26T13:39:27Z")

</div>

Thanks for your reply!

I already saw this, but I want to make a solidity smart contract. Isn’t this something else?

Kind regards,

Gino

---

<div class="post-metadata">

**Author:** ![FreezyEx](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/freezyex/32/5498_2.png) [@FreezyEx](https://forum.openzeppelin.com/u/FreezyEx)\
**Post date:** [May 26, 2021, 2:36pm UTC](https://forum.openzeppelin.com/t/is-it-possible-to-use-decimal-on-fees-going-to-liquidity-and-reflection/9210/6 "2021-05-26T14:36:25Z")

</div>

It is to learn. If you follow it you wil know how to do it

---

<div class="post-metadata">

**Author:** ![Gino\_Schreuders](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/gino_schreuders/32/6160_2.png) [@Gino\_Schreuders](https://forum.openzeppelin.com/u/Gino_Schreuders)\
**Post date:** [May 26, 2021, 2:40pm UTC](https://forum.openzeppelin.com/t/is-it-possible-to-use-decimal-on-fees-going-to-liquidity-and-reflection/9210/7 "2021-05-26T14:40:27Z")

</div>

Alright!

Thanks for your help \<3
