Skip to Content Skip to Menu

Interger field rounding. Need to keep as is.

  • rklein
  • rklein
  • OFFLINE
  • Posts: 57
  • Thanks: 0
  • Karma: 0
13 years 10 months ago #179381 by rklein
I have some data fields that are integers fields. When I input the numbers with decimals... like 4.87 it rounds it to 5 when saved. I need it to keep decimals and commas. How do I do this?

Attachments:

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 49487
  • Thanks: 8474
  • Karma: 1465
13 years 10 months ago #179442 by krileon
Integer fields will always round to a solid integer. For something more customized you should use a text field with custom regular expression for the validation to force a specific format.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

13 years 10 months ago #179513 by pepperstreet

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 49487
  • Thanks: 8474
  • Karma: 1465
13 years 10 months ago #179637 by krileon
Last update was in 2009 and was designed for CB 1.2, as we're on CB 1.7 I would suggest testing very thoroughly before pushing to production use.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

13 years 10 months ago #179719 by pepperstreet
Replied by pepperstreet on topic Re: Interger field rounding. Need to keep as is.

krileon wrote: Last update was in 2009 and was designed for CB 1.2, as we're on CB 1.7 I would suggest testing very thoroughly before pushing to production use.


You are right. I sent a message to "Softforge" via their Joomlapolis directory entry.

Please Log in or Create an account to join the conversation.

  • softforge
  • softforge
  • OFFLINE
  • Posts: 129
  • Thanks: 21
  • Karma: 12
13 years 10 months ago #179751 by softforge
Replied by softforge on topic Re: Interger field rounding. Need to keep as is.
To be honest, I haven't used the decimal field since I build it for this site so I don't know its technical status on the latest version of CB. I don't know why it would have stopped working but it could have. I don't have much time at the moment but do plan to test/upgrade all plugin on CB/J 1.7 at some point.

If you like our plugins, please consider writing a review on the Joomla Extension Directory or the Community Builder Directory ...
The following user(s) said Thank You: pepperstreet

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum