diff --git a/vpi/sys_display.c b/vpi/sys_display.c index 35a63414c..3b8d5d7d3 100644 --- a/vpi/sys_display.c +++ b/vpi/sys_display.c @@ -583,7 +583,8 @@ static unsigned int get_format_char(char **rtn, int ljust, int plus, type = vpi_get(vpiType, info->items[*idx]); if (((type == vpiConstant || type == vpiParameter) && vpi_get(vpiConstType, info->items[*idx]) == vpiRealConst) || - type == vpiRealVar ) { + type == vpiRealVar || (type == vpiSysFuncCall && + vpi_get(vpiFuncType, info->items[*idx]) == vpiRealFunc)) { value.format = vpiRealVal; } else { value.format = vpiDecStrVal;