# Clock precision setting

**URL:** <https://verificationacademy.com/forums/t/clock-precision-setting/38771>\
**Category:** SystemVerilog\
**Tags:** SystemVerilog, clock\
**Created:** [March 2, 2021, 6:04am UTC](https://verificationacademy.com/forums/t/clock-precision-setting/38771 "2021-03-02T06:04:24Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![bachan21](https://verificationacademy.com/forums/user_avatar/verificationacademy.com/bachan21/32/1208_2.png) [@bachan21](https://verificationacademy.com/forums/u/bachan21)\
**Post date:** [March 5, 2021, 9:05am UTC](https://verificationacademy.com/forums/t/clock-precision-setting/38771/8 "2021-03-05T09:05:46Z")

</div>

_In reply to [dave\_59](https://verificationacademy.com/forums/t/clock-precision-setting/38771/7):_

```verilog
`timescale 1ns/1ns
time t =39.6;
$display(t);

```

This code will return 40, right?

---

_[View the full topic](https://verificationacademy.com/forums/t/clock-precision-setting/38771)._
