Expand my Community achievements bar.

Adobe Summit 2025: AEM Session Recordings Are Live! Missed a session or want to revisit your favorites? Watch the latest recordings now.

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

JavaScript - Casting String to Integer

Avatar

Former Community Member

Hi there!

I can't believe I'm asking this.

I need to convert strings into integer and so far I haven't found any function in the documentation.

Is there such a function?

I've tried parseInt(), does not work. Tried Number(), same results.

Thank you for any hints!

Marcos

1 Reply

Avatar

Level 10

I think either of those should work...what does your code look like?