Question: I have a value in a PHP variable like this:

```
$var='2.533333345';
echo $var;

```

What I want is to delete all decimal points after 5 digits.

like now the value of the variable will be

```
$var='2.53333';
echo $var

```

also, if `$var ='2.500000000';`, I need only `$var = '2.50';`. I need to remove zeros after 2 decimal places.

Answer: 
We can try

```
library(data.table)
as.data.table(iris)[Species == "setosa" & Petal.Length> 1.2| 
                         Species != "setosa" & Petal.Length > 1.2]

```

---

Or with `dplyr`

```
iris %>%
     filter(Species == "setosa" & Petal.Length > 1.2 |
             Species != "setosa" & Petal.Length > 1.2)

```
Give this a try

```
require(dplyr)
foo <- filter(iris,Petal.Length > 1.2 & Species != "setosa")

```

This will return all observations where the petal length is > 1.2 and the Species is not Setosa