Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7804053
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T01:47:21+00:00 2026-06-02T01:47:21+00:00

Hello All I am using Javascript to calculate some values of textboxes .The calculations

  • 0

Hello All I am using Javascript to calculate some values of textboxes .The calculations become only for the value before decimal places but when i enter the value after a point then it make no nay effect on result.Here is my JS code and formulas in it

Update

var pkrusd;
pkrusd = parseFloat(document.getElementById('txtpkrusd').value, 10); 
var ratelb;
ratelb = parseFloat(document.getElementById('txtRatelb').value, 10);
//Per 10 lb
var pertenlb=roundNumber(((pkrusd*ratelb)/400)*10,2);
parseFloat(document.getElementById('txtpertenlb').value)=addCommas(pertenlb);
//PEr 100 lb
var perhundlb=roundNumber(pertenlb*10,2);
parseFloat(document.getElementById('txtper100lb').value)=addCommas(perhundlb);
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T01:47:23+00:00Added an answer on June 2, 2026 at 1:47 am

    You should use parseFloat instead of parseInt. The int in parseInt is an abbreviation for “integer” which means “whole number”.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hello friends i need a book/ tutorials for rails without using scoffold. All the
How could I achieve the following: document.all.regTitle.innerHTML = 'Hello World'; Using jQuery where regTitle
Hello all I am working in javascript and html5.I want to ask that how
Hello to all I am here facing some situation of detecting url in asp.net
Currently using Telerik ASP .NET MVC Controls version 2011.2.712 Hello all, I am trying
I have some troubles when using javascript code for Facebook invite friends. Details: User
I am using a way to insert some javascript code in the page which
hello i am using javascript to validate field i am checking special characters.. the
Hello all i'm turning objects on (adding the class .active) and off on a
hello all I have a small dialog which I created dynamically, which has a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.