Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
12 replies
Subscribers
7 subscribers
Views
3392 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
Hi.. In Database, we have a float value like "45.5", and in UI it has
smrutis
over 8 years ago
Hi.. In Database, we have a float value like "45.5", and in UI it has to be displayed as "45.50". Is there a way to do this?
OriginalPostID-156978
OriginalPostID-156978
Discussion posts and replies are publicly visible
0
vineeta6579
over 8 years ago
you can use Text function to format output like below code.
text(10.25, "00.0")
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
smrutis
over 8 years ago
Thanks for the reply!
I want to change 10.5 to 10.50
Tried multiple functions but no luck so far.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
vineeta6579
over 8 years ago
please try text(10.5, "00.00")
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
vineeta6579
over 8 years ago
few questions
-> Is it multiple type or single type pv
-> what is data type of variable ( typename(typeof(pv!variable)))
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
smrutis
over 8 years ago
Thanks! now it works with text(10.5,"0.00")
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
smrutis
over 8 years ago
It is single type and in UI the data type is text but in database it is being stored as float.
however I am getting an abnormal behavior. The value of 9999999.99 is become 107 :)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
vineeta6579
over 8 years ago
try =fixed(999999.5,2).
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
vineeta6579
over 8 years ago
It actually round off the number to most significant digits.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Srinivasa Kommanaboyina
Certified Lead Developer
over 8 years ago
Please use text(ri!var, "0.00"). it work like this text(45.5, "0.00") -> 45.50 and text(37645, "0.00") -> 37645.00
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
smrutis
over 8 years ago
why text(99999999999.99,"0.00") returns 21474836479.99 ?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
>