ER.SHASHI TIWARI
ER.SHASHI TIWARI

Reputation: 917

Property 'parseFloat' does not exist on type 'NumberConstructor' angular2

Property 'parseFloat' does not exist on type 'NumberConstructor'

assigned parseFloat code below

DistributionAmount: Number.parseFloat(this.glAccountObject.glAccountAmount),

Upvotes: 4

Views: 4364

Answers (2)

Imamudin Naseem
Imamudin Naseem

Reputation: 1702

Paste this in the file which is throwing error.

interface INumber {
    parseFloat: Function
}
declare var Number: INumber;

Upvotes: 1

micronyks
micronyks

Reputation: 55443

DistributionAmount: Number = parseFloat(this.glAccountObject.glAccountAmount),

Upvotes: 4

Related Questions