Hi,
I wonder if there is a way that I can get the zero to show upp when using @round with one decimal? To illustrate what I mean, this code will prompt up 2, but I would like 2.0.
!i = 2.04
!j = @round(!i, 1)
@uiprompt(@str(!j))
Best regards,
Pelle
Zero disappears with round
Moderators: EViews Gareth, EViews Moderator
-
- EViews Developer
- Posts: 563
- Joined: Thu Apr 25, 2013 7:48 pm
Re: Zero disappears with round
Hello,
You can use the optional second argument to @str to specify a format for the resulting string, including how may digits should appear to the right of the decimal point. I believe what you're asking for is accomplished with @str(!j, "f.1").
You can use the optional second argument to @str to specify a format for the resulting string, including how may digits should appear to the right of the decimal point. I believe what you're asking for is accomplished with @str(!j, "f.1").
-
- Posts: 24
- Joined: Fri Sep 16, 2016 6:35 am
Re: Zero disappears with round
Oh missed that argument, thanks a lot!
Return to “Suggestions and Requests”
Who is online
Users browsing this forum: No registered users and 19 guests