# How to take input for ceil, round, month and floor and how to use it using mjsv

**URL:** <https://community.automationedge.com/t/how-to-take-input-for-ceil-round-month-and-floor-and-how-to-use-it-using-mjsv/5722>\
**Category:** Process Studio\
**Tags:** rpa, process-studio\
**Created:** [April 11, 2022, 7:27am UTC](https://community.automationedge.com/t/how-to-take-input-for-ceil-round-month-and-floor-and-how-to-use-it-using-mjsv/5722 "2022-04-11T07:27:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bhairavi](https://avatars.discourse-cdn.com/v4/letter/b/9fc29f/32.png) [@bhairavi](https://community.automationedge.com/u/bhairavi)\
**Post date:** [April 11, 2022, 7:27am UTC](https://community.automationedge.com/t/how-to-take-input-for-ceil-round-month-and-floor-and-how-to-use-it-using-mjsv/5722/1 "2022-04-11T07:27:11Z")

</div>

how to use ceil, round,month and floor functions.

---

<div class="post-metadata">

**Author:** ![KalyaniW](https://avatars.discourse-cdn.com/v4/letter/k/71e660/32.png) [@KalyaniW](https://community.automationedge.com/u/KalyaniW)\
**Post date:** [April 11, 2022, 9:36am UTC](https://community.automationedge.com/t/how-to-take-input-for-ceil-round-month-and-floor-and-how-to-use-it-using-mjsv/5722/2 "2022-04-11T09:36:52Z")

</div>

Hello @bhairavi

Use the given script in Modified Java Script to achieve your use case

```auto
var ceilFunction = Math.ceil(inputValue);
var roundFunction = Math.round(inputValue);
var floorFunction = Math.floor(inputValue);

var DateObj = new Date();
var months = DateObj.getMonth();

```

Take a note that getMonth() returns the month (0 to 11) of a date.  
January =0, February = 1, … so on.
